]> source.dussan.org Git - archiva.git/blob
3f4f6d80f9b3ee0115238df74f2c93d9dc5a6e3d
[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 prefix="redback" uri="/redback/taglib-1.0"%>
18 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
19
20 <html>
21 <s:i18n name="org.apache.archiva.redback.struts2.default">
22 <head>
23   <title><s:text name="role.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="role.list.section.title"/></h2>
31
32 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
33
34   <table width="100%">
35
36     <c:choose>
37       <c:when test="${!empty allRoles}">
38         <thead>
39           <tr>
40             <th width="49%"><s:text name="role.name"/></th>
41             <th width="49%"><s:text name="role.description"/></th>
42           </tr>
43         </thead>
44         
45         <c:forEach var="role" items="${allRoles}">
46           <tr>
47             <td>
48               <s:url id="roleUrl" action="role">
49                 <s:param name="name">${role.name}</s:param>
50               </s:url>
51               <s:a href="%{roleUrl}"><c:out value="${role.name}" /></s:a>
52             </td>
53             <td>
54               <c:out value="${role.description}" />
55             </td>
56           </tr>
57         </c:forEach>
58       </c:when>
59       <c:otherwise>
60         <p><em><s:text name="role.list.no.roles.available"/></em></p>
61       </c:otherwise>
62     </c:choose>
63   </table>
64
65 </body>
66 </s:i18n>
67 </html>