]> source.dussan.org Git - archiva.git/blob
df1c66fc1f8873236586c041df35c0b895462cdc
[archiva.git] /
1 <%--
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
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
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
17   ~ under the License.
18   --%>
19
20 <%@ page contentType="text/html; charset=UTF-8" %>
21 <%@ taglib prefix="s" uri="/struts-tags" %>
22 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
23
24 <html>
25 <head>
26   <title>Admin: Add Managed Repository</title>
27   <s:head/>
28 </head>
29
30 <body>
31
32 <h1>Admin: Add Managed Repository</h1>
33
34   <div class="warningbox">
35     <p>
36       <strong>WARNING: Repository location already exists.</strong>
37     </p>
38   </div>
39   
40   <p>
41     Are you sure you want to 
42     <c:choose>
43       <c:when test="${action == 'addRepository'}">add</c:when>
44       <c:otherwise>update</c:otherwise>
45     </c:choose>
46     the following managed repository?
47   </p>
48
49   <%-- used c:out in displaying EL's so that they are escaped --%>
50   <div class="infobox">
51     <table class="infotable">
52       <tr>
53         <td>ID:</td>
54         <td><code><c:out value="${repository.id}" /></code></td>
55       </tr>
56       <tr>
57         <td>Name:</td>
58         <td><c:out value="${repository.name}" /></td>
59       </tr>
60       <tr>
61         <td>Directory:</td>
62         <td><c:out value="${repository.location}" /></td>
63       </tr>
64       <tr>
65         <td>Index Directory:</td>
66         <td><c:out value="${repository.indexDirectory}" /></td>
67       </tr>
68       <tr>
69         <td>Type:</td>
70         <%--td>${repository.layout}</td--%>
71         <td>
72           <c:choose>
73             <c:when test="${repository.layout == 'default'}">
74               Maven 2.x Repository
75             </c:when>
76             <c:otherwise>
77               Maven 1.x Repository
78             </c:otherwise>
79           </c:choose>
80         </td>
81       </tr>
82       <tr>
83         <td>Cron:</td>
84         <td><c:out value="${repository.cronExpression}" /></td>
85       </tr>
86       <tr>
87         <td>Repository Purge By Days Older Than:</td>
88         <td><c:out value="${repository.daysOlder}" /></td>
89       </tr>
90       <tr>
91         <td>Repository Purge By Retention Count:</td>
92         <td><c:out value="${repository.retentionCount}" /></td>
93       </tr>
94       <tr>
95         <td>Releases Included:</td>
96         <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon">
97       </tr>
98       <tr>
99         <td>Snapshots Included:</td>
100         <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon">
101       </tr>
102       <tr>
103         <td>Scannable:</td>
104         <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon">
105       </tr>
106       <tr>
107         <td>Delete Released Snapshots:</td>
108         <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon">
109       </tr>
110     </table>
111   </div>
112
113   <s:form method="post" action="%{action}" namespace="/admin" validate="true" theme="simple">
114     <div class="buttons">      
115       <s:hidden name="repository.id" value="%{#attr.repository.id}"/>
116       <s:hidden name="repository.name" value="%{#attr.repository.name}"/>
117       <s:hidden name="repository.location" value="%{#attr.repository.location}"/>
118       <s:hidden name="repository.indexDir" value="%{#attr.repository.indexDirectory}"/>
119       <s:hidden name="repository.layout" value="%{#attr.repository.layout}"/>
120       <s:hidden name="repository.cronExpression" value="%{#attr.repository.cronExpression}"/>
121       <s:hidden name="repository.daysOlder" value="%{#attr.repository.daysOlder}"/>
122       <s:hidden name="repository.retentionCount" value="%{#attr.repository.retentionCount}"/>
123       <s:hidden name="repository.releases" value="%{#attr.repository.releases}"/>
124       <s:hidden name="repository.snapshots" value="%{#attr.repository.snapshots}"/>
125       <s:hidden name="repository.scanned" value="%{#attr.repository.scanned}"/>
126       <s:hidden name="repository.deleteReleasedSnapshots" value="%{#attr.repository.deleteReleasedSnapshots}"/>
127       
128       <c:choose>      
129         <c:when test="${action == 'addRepository'}">
130           <s:submit value="Save" method="confirmAdd"/>
131         </c:when>
132         <c:otherwise>
133           <s:submit value="Save" method="confirmUpdate"/>
134         </c:otherwise>
135       </c:choose>
136       
137       <s:submit value="Cancel" method="execute"/>
138     </div>
139   </s:form>
140   
141 </body>
142 </html>