|
74 | 74 | cursor:pointer; |
75 | 75 | } |
76 | 76 | .styled-button:hover{background-color:#1e90ff; color:#f5f5dc;} |
| 77 | + a.styled-button{text-decoration:none; color:#fff;} |
| 78 | + a.styled-button:visited{color:#fff;} |
77 | 79 | .toolOwners {width: 80%; min-width: 300px;} |
78 | 80 | .ui-menu {width:240px;} |
79 | 81 | .dropMenu {position: absolute;} |
|
204 | 206 |
|
205 | 207 | <div class="toolButtons"> |
206 | 208 |
|
207 | | - <button type="button" id="download-tool-btn-<%=tool.getRowId()%>" class="styled-button">Download <span class="visually-hidden"><%=h(tool.getName())%></span></button> |
208 | | - <% addHandler("download-tool-btn-" + tool.getRowId(), "click", "window.location.href = " + q(urlFor(SkylineToolsStoreController.DownloadToolAction.class).addParameter("id", tool.getRowId()))); %> |
| 209 | + <%=link(unsafe("Download<span class=\"visually-hidden\"> " + h(tool.getName()) + "</span>")).href(urlFor(SkylineToolsStoreController.DownloadToolAction.class).addParameter("id", tool.getRowId()).toString()).clearClasses().addClass("styled-button")%> |
209 | 210 | <% |
210 | 211 | if (docCount == 1 && hasDocs) { |
211 | 212 | %> |
212 | | - <%=link(unsafe("Documentation <span class=\"visually-hidden\">" + h(tool.getName()) + "</span>")).href(tool.getDocsUrl()).clearClasses().addClass("styled-button").target("_blank").rel("noopener noreferrer")%> |
| 213 | + <%=link(unsafe("Documentation<span class=\"visually-hidden\"> " + h(tool.getName()) + "</span>")).href(tool.getDocsUrl()).clearClasses().addClass("styled-button").target("_blank").rel("noopener noreferrer")%> |
213 | 214 | <% |
214 | 215 | } else if (docCount == 1) { |
215 | 216 | Map.Entry suppPair = (Map.Entry)suppIter.next(); |
216 | 217 | %> |
217 | | - <%=link(unsafe("Documentation <span class=\"visually-hidden\">" + h(tool.getName()) + "</span>")).href(suppPair.getKey().toString()).clearClasses().addClass("styled-button")%> |
| 218 | + <%=link(unsafe("Documentation<span class=\"visually-hidden\"> " + h(tool.getName()) + "</span>")).href(suppPair.getKey().toString()).clearClasses().addClass("styled-button")%> |
218 | 219 | <% } else if (docCount > 1) { %> |
219 | 220 | <div class="menuMouseArea"> |
220 | | - <button type="button" class="styled-button">Documentation <span class="visually-hidden"><%=h(tool.getName())%></span></button> |
| 221 | + <button type="button" class="styled-button">Documentation<span class="visually-hidden"><%=h(tool.getName())%></span></button> |
221 | 222 | <ul class="dropMenu"> |
222 | 223 | <% if (hasDocs) { %> |
223 | 224 | <li><a href="<%=h(tool.getDocsUrl())%>" target="_blank" rel="noopener noreferrer"><img class="menuIconImg" src="<%= h(imgDir) %>link.png" alt="Documentation">Online Documentation</a></li> |
|
0 commit comments