You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

browseGroup.jsp 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <%--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one
  3. ~ or more contributor license agreements. See the NOTICE file
  4. ~ distributed with this work for additional information
  5. ~ regarding copyright ownership. The ASF licenses this file
  6. ~ to you under the Apache License, Version 2.0 (the
  7. ~ "License"); you may not use this file except in compliance
  8. ~ with the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing,
  13. ~ software distributed under the License is distributed on an
  14. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. ~ KIND, either express or implied. See the License for the
  16. ~ specific language governing permissions and limitations
  17. ~ under the License.
  18. --%>
  19. <%@ taglib prefix="s" uri="/struts-tags" %>
  20. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  21. <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
  22. <html>
  23. <head>
  24. <title>Browse Repository</title>
  25. <s:head/>
  26. </head>
  27. <body>
  28. <h1>Browse Repository</h1>
  29. <div id="contentArea">
  30. <p>
  31. <archiva:groupIdLink var="${results.selectedGroupId}" includeTop="true" />
  32. </p>
  33. <div id="nameColumn">
  34. <h2>Groups</h2>
  35. <ul>
  36. <c:forEach items="${results.groupIds}" var="groupId">
  37. <c:set var="url">
  38. <s:url action="browseGroup" namespace="/">
  39. <s:param name="groupId" value="%{'${groupId}'}"/>
  40. </s:url>
  41. </c:set>
  42. <li><a href="${url}">${groupId}/</a></li>
  43. </c:forEach>
  44. </ul>
  45. </div>
  46. <c:if test="${not empty results.versions}">
  47. <div id="nameColumn">
  48. <h2>Versions</h2>
  49. <ul>
  50. <c:forEach items="${results.versions}" var="version">
  51. <c:set var="url">
  52. <s:url action="browseVersion" namespace="/">
  53. <s:param name="groupId" value="%{'${results.selectedGroupId}'}"/>
  54. <s:param name="version" value="%{'${version}'}"/>
  55. </s:url>
  56. </c:set>
  57. <li><a href="${url}">${version}/</a></li>
  58. </c:forEach>
  59. </ul>
  60. </div>
  61. </c:if>
  62. <c:if test="${not empty results.artifacts}">
  63. <div id="nameColumn">
  64. <h2>Artifacts</h2>
  65. <ul>
  66. <c:forEach items="${results.artifacts}" var="artifactId">
  67. <c:set var="url">
  68. <s:url action="browseArtifact" namespace="/">
  69. <s:param name="groupId" value="%{'${groupId}'}"/>
  70. <s:param name="artifactId" value="%{'${artifactId}'}"/>
  71. </s:url>
  72. </c:set>
  73. <li><a href="${url}">${artifactId}/</a></li>
  74. </c:forEach>
  75. </ul>
  76. </div>
  77. </c:if>
  78. </div>
  79. </body>
  80. </html>