]> source.dussan.org Git - archiva.git/blob
114a49c59085e13d200b79648c88b4ad5a8d01eb
[archiva.git] /
1 <%--
2   ~
3   ~ Licensed under the Apache License, Version 2.0 (the "License");
4   ~ you may not use this file except in compliance with the License.
5   ~ You may obtain a copy of the License at
6   ~
7   ~      http://www.apache.org/licenses/LICENSE-2.0
8   ~
9   ~ Unless required by applicable law or agreed to in writing, software
10   ~ distributed under the License is distributed on an "AS IS" BASIS,
11   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   ~ See the License for the specific language governing permissions and
13   ~ limitations under the License.
14   --%>
15
16 <%@ taglib prefix="s" uri="/struts-tags"%>
17 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
18
19 <html>
20 <s:i18n name="org.apache.archiva.redback.struts2.default">
21 <head>
22   <title><s:text name="resource.list.page.title"/></title>
23 </head>
24
25 <body>
26
27 <%@ include file="/WEB-INF/jsp/redback/include/rbacListNavigation.jsp" %>
28
29 <h2><s:text name="resource.list.section.title"/></h2>
30
31 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
32
33 <s:form action="resources!remove" method="post" theme="simple">
34
35   <table>
36
37     <c:choose>
38       <c:when test="${!empty allResources}">
39         <thead>
40           <tr>
41             <th>&nbsp;</th>
42             <th><s:text name="name"/></th>
43             <th><s:text name="description"/></th>
44           </tr>
45         </thead>
46         
47         <c:forEach var="resource" items="${allResources}">
48           <tr>
49             <td>
50               <s:checkbox name="selectedResources" fieldValue="%{resource.identifier}" />
51             </td>
52             <td>
53               <s:url id="resourceUrl" action="resource-edit">
54                 <s:param name="resourceIdentifier">${resource.identifier}</s:param>
55               </s:url>
56               <s:a href="%{resourceUrl}"><c:out value="${resource.identifier}" /></s:a>
57             </td>
58             <td>
59               <c:out value="${resource.pattern}" />
60             </td>
61           </tr>
62         </c:forEach>
63       </c:when>
64       <c:otherwise>
65         <p><em><s:text name="resource.list.no.resources.available"/></em></p>
66       </c:otherwise>
67     </c:choose>
68     
69     <tr>
70       <td colspan="3">
71         <s:submit value="%{getText('remove.selected.roles')}" />
72       </td>
73     </tr>
74
75   </table>
76   
77 </s:form>
78
79 </body>
80 </s:i18n>
81 </html>