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