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