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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
20 <%@ taglib prefix="ww" uri="/webwork" %>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
22 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
23 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
27 <title>Administration - Repositories</title>
33 <h1>Administration - Repositories</h1>
35 <div id="contentArea">
41 <div class="controls">
42 <redback:ifAuthorized permission="archiva-manage-configuration">
43 <ww:url id="addRepositoryUrl" action="addRepository"/>
44 <ww:a href="%{addRepositoryUrl}">
45 <img src="<c:url value="/images/icons/create.png" />" alt="" width="16" height="16"/>
48 </redback:ifAuthorized>
50 <h2>Managed Repositories</h2>
53 <c:when test="${empty (managedRepositories)}">
54 <%-- No Managed Repositories. --%>
55 <strong>There are no managed repositories configured yet.</strong>
58 <%-- Display the repositories. --%>
60 <c:forEach items="${managedRepositories}" var="repository" varStatus="i">
62 <c:when test='${(i.index)%2 eq 0}'>
63 <c:set var="rowColor" value="dark" scope="page"/>
66 <c:set var="rowColor" value="lite" scope="page"/>
70 <div class="repository ${rowColor}">
72 <div class="controls">
73 <%-- TODO: make some icons --%>
74 <redback:ifAnyAuthorized permissions="archiva-manage-configuration">
75 <ww:url id="editRepositoryUrl" action="editRepository">
76 <ww:param name="repoid" value="%{'${repository.id}'}"/>
78 <ww:url id="deleteRepositoryUrl" action="confirmDeleteRepository">
79 <ww:param name="repoid" value="%{'${repository.id}'}"/>
81 <ww:a href="%{editRepositoryUrl}">
82 <img src="<c:url value="/images/icons/edit.png" />" alt="" width="16" height="16"/>
85 <ww:a href="%{deleteRepositoryUrl}">
86 <img src="<c:url value="/images/icons/delete.gif" />" alt="" width="16" height="16"/>
89 </redback:ifAnyAuthorized>
90 <c:url var="rssFeedIconUrl" value="/images/icons/rss-feed.png"/>
91 <a href="/archiva/rss/rss_feeds?repoId=${repository.id}">
92 <img src="${rssFeedIconUrl}" />
96 <div style="float: left">
97 <img src="<c:url value="/images/archiva-splat-32.gif"/>" alt="" width="32" height="32"/>
100 <h3 class="repository">${repository.name}</h3>
102 <table class="infoTable">
106 <code>${repository.id}</code>
112 <code>${repository.name}</code>
117 <td>${repository.location}</td>
119 <c:if test="${!empty (repository.indexDir)}">
121 <th>Index Directory</th>
122 <td>${repository.indexDir}</td>
127 <td><a href="${baseUrl}/${repository.id}/">${baseUrl}/${repository.id}/</a></td>
131 <%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%>
134 <c:when test="${repository.layout == 'default'}">
143 <c:if test="${!empty (repositoryToGroupMap[repository.id])}">
147 <c:forEach items="${repositoryToGroupMap[repository.id]}" varStatus="i" var="group">
148 ${group}<c:if test="${!i.last}">,</c:if>
154 <th>Releases Included</th>
155 <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon"> </td>
158 <th>Snapshots Included</th>
159 <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon"> </td>
161 <c:if test="${repository.snapshots}">
163 <th>Delete Released Snapshots</th>
164 <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon"> </td>
167 <th>Repository Purge By Days Older Than</th>
168 <td>${repository.daysOlder}</td>
171 <th>Repository Purge By Retention Count</th>
172 <td>${repository.retentionCount}</td>
177 <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon"> </td>
179 <c:if test="${repository.scanned}">
181 <th>Scanning Cron</th>
182 <td>${repository.refreshCronExpression}</td>
192 <redback:ifAuthorized permission="archiva-run-indexer">
193 <ww:form action="indexRepository" theme="simple">
194 <ww:hidden name="repoid" value="%{'${repository.id}'}"/>
195 <ww:submit value="Scan Repository Now"/>
197 </redback:ifAuthorized>
206 <c:set var="stats" value="${repositoryStatistics[repository.id]}"/>
208 <c:when test="${empty (stats)}">
209 No Statistics Available.
214 <th>Last Scanned</th>
215 <td>${stats.whenGathered}</td>
219 <td>${stats.duration} ms</td>
222 <th>Total File Count</th>
223 <td>${stats.totalFileCount}
226 <th>New Files Found</th>
227 <td>${stats.newFileCount}
238 <archiva:copy-paste-snippet object="${repository}" wrapper="toggle" />
249 <div class="controls">
250 <redback:ifAuthorized permission="archiva-manage-configuration">
251 <ww:url id="addRepositoryUrl" action="addRemoteRepository"/>
252 <ww:a href="%{addRepositoryUrl}">
253 <img src="<c:url value="/images/icons/create.png" />" alt="" width="16" height="16"/>
256 </redback:ifAuthorized>
258 <h2>Remote Repositories</h2>
261 <c:when test="${empty (remoteRepositories)}">
262 <%-- No Remote Repositories. --%>
263 <strong>There are no remote repositories configured yet.</strong>
266 <%-- Display the repositories. --%>
267 <c:forEach items="${remoteRepositories}" var="repository" varStatus="i">
269 <c:when test='${(i.index)%2 eq 0}'>
270 <c:set var="rowColor" value="dark" scope="page"/>
273 <c:set var="rowColor" value="lite" scope="page"/>
277 <div class="repository ${rowColor}">
279 <div class="controls">
280 <redback:ifAnyAuthorized permissions="archiva-manage-configuration">
281 <ww:url id="editRepositoryUrl" action="editRemoteRepository">
282 <ww:param name="repoid" value="%{'${repository.id}'}"/>
284 <ww:a href="%{editRepositoryUrl}">
285 <img src="<c:url value="/images/icons/edit.png" />" alt="" width="16" height="16"/>
288 <ww:url id="deleteRepositoryUrl" action="confirmDeleteRemoteRepository">
289 <ww:param name="repoid" value="%{'${repository.id}'}"/>
291 <ww:a href="%{deleteRepositoryUrl}">
292 <img src="<c:url value="/images/icons/delete.gif" />" alt="" width="16" height="16"/>
295 </redback:ifAnyAuthorized>
298 <div style="float: left">
299 <img src="<c:url value="/images/archiva-world.png"/>" alt="" width="32" height="32"/>
302 <h3 class="repository">${repository.name}</h3>
304 <table class="infoTable">
308 <code>${repository.id}</code>
314 <code>${repository.name}</code>
319 <td>${repository.url}</td>
323 <%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%>
326 <c:when test="${repository.layout == 'default'}">