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