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.

default.jsp 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <%--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. --%>
  20. <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
  21. <%@ taglib uri="/struts-tags" prefix="s" %>
  22. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  23. <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
  24. <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
  25. <%@ page import="org.apache.maven.archiva.web.startup.ArchivaVersion" %>
  26. <%@ page import="java.util.Calendar" %>
  27. <html>
  28. <head>
  29. <title>Apache Archiva \
  30. <decorator:title default="Apache Archiva"/>
  31. </title>
  32. <link rel="stylesheet" href="<c:url value="/css/maven-base.css"/>" type="text/css" media="all"/>
  33. <link rel="stylesheet" href="<c:url value="/css/maven-theme.css"/>" type="text/css" media="all"/>
  34. <link rel="stylesheet" href="<c:url value="/css/redback/table.css"/>" type="text/css" media="all"/>
  35. <link rel="stylesheet" href="<c:url value="/css/site.css"/>" type="text/css" media="all"/>
  36. <link rel="stylesheet" href="<c:url value="/css/print.css"/>" type="text/css" media="print"/>
  37. <link rel="shortcut icon" href="<c:url value="/favicon.ico" />"/>
  38. <script type="text/javascript" src="<c:url value="/js/scriptaculous/prototype.js"/>"></script>
  39. <script type="text/javascript" src="<c:url value="/js/scriptaculous/scriptaculous.js"/>"></script>
  40. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
  41. </head>
  42. <body onload="<decorator:getProperty property="body.onload" />" class="composite">
  43. <div id="banner">
  44. <span id="bannerLeft">
  45. <my:currentWWUrl action="index" namespace="/">
  46. <img src="<c:url value='/images/archiva.png' />" alt="" width="188" height="69"/>
  47. </my:currentWWUrl>
  48. </span>
  49. <span id="bannerRight">
  50. <s:action namespace="/components" name="companyInfo" executeResult="true"/>
  51. </span>
  52. <div class="clear">
  53. <hr/>
  54. </div>
  55. </div>
  56. <div id="breadcrumbs">
  57. <div class="xleft">
  58. <%@ include file="/WEB-INF/jsp/redback/include/securityLinks.jsp" %>
  59. </div>
  60. <div class="xright">
  61. <a href="http://archiva.apache.org">Archiva</a> |
  62. <a href="http://maven.apache.org/">Maven</a> |
  63. <a href="http://www.apache.org/">Apache</a>
  64. </div>
  65. <div class="clear">
  66. <hr/>
  67. </div>
  68. </div>
  69. <div id="leftColumn">
  70. <div id="navcolumn">
  71. <h5>Find</h5>
  72. <ul>
  73. <li class="none">
  74. <my:currentWWUrl action="index" namespace="/">Search</my:currentWWUrl>
  75. </li>
  76. <s:if test="%{applicationScope.uiOptions.showFindArtifacts}">
  77. <li class="none">
  78. <my:currentWWUrl action="findArtifact" namespace="/">Find Artifact</my:currentWWUrl>
  79. </li>
  80. </s:if>
  81. <li class="none">
  82. <my:currentWWUrl action="browse" namespace="/">Browse</my:currentWWUrl>
  83. </li>
  84. </ul>
  85. <redback:ifAnyAuthorized permissions="archiva-manage-users,archiva-access-reports,archiva-manage-configuration">
  86. <h5>Manage</h5>
  87. <ul>
  88. <redback:ifAuthorized permission="archiva-access-reports">
  89. <li class="none">
  90. <my:currentWWUrl action="pickReport" namespace="/report">Reports</my:currentWWUrl>
  91. </li>
  92. </redback:ifAuthorized>
  93. <%-- POSTPONED to 1.1 series
  94. <li class="none">
  95. <a href="#">Synchronisation</a>
  96. </li>
  97. --%>
  98. <redback:ifAuthorized permission="archiva-manage-users">
  99. <li class="none">
  100. <my:currentWWUrl action="userlist" namespace="/security">User Management</my:currentWWUrl>
  101. </li>
  102. </redback:ifAuthorized>
  103. <redback:ifAuthorized permission="archiva-manage-configuration">
  104. <li class="none">
  105. <my:currentWWUrl action="configureAppearance" namespace="/admin">Appearance</my:currentWWUrl>
  106. </li>
  107. <li class="none">
  108. <my:currentWWUrl action="upload" namespace="/">Upload Artifact</my:currentWWUrl>
  109. </li>
  110. </redback:ifAuthorized>
  111. <%-- TODO: future options here.
  112. * Repository Statistics.
  113. * Web Services Statistics.
  114. --%>
  115. </ul>
  116. </redback:ifAnyAuthorized>
  117. <redback:ifAuthorized permission="archiva-manage-configuration">
  118. <h5>Administration</h5>
  119. <ul>
  120. <li class="none">
  121. <my:currentWWUrl action="repositoryGroups" namespace="/admin">Repository Groups</my:currentWWUrl>
  122. </li>
  123. <li class="none">
  124. <my:currentWWUrl action="repositories" namespace="/admin">Repositories</my:currentWWUrl>
  125. </li>
  126. <li class="none">
  127. <my:currentWWUrl action="proxyConnectors" namespace="/admin">Proxy Connectors</my:currentWWUrl>
  128. </li>
  129. <li class="none">
  130. <my:currentWWUrl action="legacyArtifactPath" namespace="/admin">Legacy support</my:currentWWUrl>
  131. </li>
  132. <li class="none">
  133. <my:currentWWUrl action="networkProxies" namespace="/admin">Network Proxies</my:currentWWUrl>
  134. </li>
  135. <li class="none">
  136. <my:currentWWUrl action="repositoryScanning" namespace="/admin">Repository Scanning</my:currentWWUrl>
  137. </li>
  138. <li class="none">
  139. <my:currentWWUrl action="database" namespace="/admin">Database</my:currentWWUrl>
  140. </li>
  141. <%-- TODO: future options here.
  142. * Repository Syncing Connectors. (rsync, ftp, scp, etc...)
  143. * Web Services (enable / disable), role based?
  144. --%>
  145. </ul>
  146. </redback:ifAuthorized>
  147. </div>
  148. </div>
  149. <div id="bodyColumn">
  150. <div id="contentBox">
  151. <decorator:body/>
  152. </div>
  153. </div>
  154. <div class="clear">
  155. <hr/>
  156. </div>
  157. <%
  158. int inceptionYear = 2005;
  159. int currentYear = Calendar.getInstance().get( Calendar.YEAR );
  160. String copyrightRange = String.valueOf( inceptionYear );
  161. if ( inceptionYear != currentYear )
  162. {
  163. copyrightRange = copyrightRange + "-" + String.valueOf( currentYear );
  164. }
  165. %>
  166. <div id="footer">
  167. <div class="xleft">
  168. Apache Archiva <%= ArchivaVersion.getVersion() %>
  169. </div>
  170. <div class="xright">
  171. Copyright &#169; <%= copyrightRange %> The Apache Software Foundation
  172. </div>
  173. <div class="clear">
  174. <hr/>
  175. </div>
  176. </div>
  177. </body>
  178. </html>