]> source.dussan.org Git - archiva.git/blob
90580d7ec7fb6fc6827dbaa0d7ad2b5d6bb06a46
[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="s" uri="/struts-tags" %>
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   <s: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 
41     <c:choose>
42       <c:when test="${action == 'addRepository'}">add</c:when>
43       <c:otherwise>update</c:otherwise>
44     </c:choose>
45     the following managed repository?
46   </p>
47
48   <div class="infobox">
49     <table class="infotable">
50       <tr>
51         <td>ID:</td>
52         <td><code>${repository.id}</code></td>
53       </tr>
54       <tr>
55         <td>Name:</td>
56         <td>${repository.name}</td>
57       </tr>
58       <tr>
59         <td>Directory:</td>
60         <td>${repository.location}</td>
61       </tr>
62       <tr>
63         <td>Index Directory:</td>
64         <td>${repository.indexDir}</td>
65       </tr>
66       <tr>
67         <td>Type:</td>
68         <%--td>${repository.layout}</td--%>
69         <td>
70           <c:choose>
71                 <c:when test="${repository.layout == 'default'}">
72                   Maven 2.x Repository
73                 </c:when>
74                 <c:otherwise>
75                   Maven 1.x Repository
76                 </c:otherwise>
77               </c:choose>
78             </td>
79       </tr>
80       <tr>
81         <td>Cron:</td>
82         <td>${repository.refreshCronExpression}</td>
83       </tr>
84       <tr>
85         <td>Repository Purge By Days Older Than:</td>
86         <td>${repository.daysOlder}</td>
87       </tr>
88       <tr>
89         <td>Repository Purge By Retention Count:</td>
90         <td>${repository.retentionCount}</td>
91       </tr>
92       <tr>
93         <td>Releases Included:</td>
94         <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon">
95       </tr>
96       <tr>
97         <td>Snapshots Included:</td>
98         <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon">
99       </tr>
100       <tr>
101         <td>Scannable:</td>
102         <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon">
103       </tr>
104       <tr>
105         <td>Delete Released Snapshots:</td>
106         <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon">
107       </tr>
108     </table>
109   </div>
110         
111   <s:form method="post" action="%{action}" namespace="/admin" validate="true" theme="simple">
112     <div class="buttons">      
113       <s:hidden name="repository.id" value="%{#attr.repository.id}"/>
114       <s:hidden name="repository.name" value="%{#attr.repository.name}"/>
115       <s:hidden name="repository.location" value="%{#attr.repository.location}"/>
116       <s:hidden name="repository.indexDir" value="%{#attr.repository.indexDir}"/>
117       <s:hidden name="repository.layout" value="%{#attr.repository.layout}"/>
118       <s:hidden name="repository.refreshCronExpression" value="%{#attr.repository.refreshCronExpression}"/>
119       <s:hidden name="repository.daysOlder" value="%{#attr.repository.daysOlder}"/>
120       <s:hidden name="repository.retentionCount" value="%{#attr.repository.retentionCount}"/>
121       <s:hidden name="repository.releases" value="%{#attr.repository.releases}"/>
122       <s:hidden name="repository.snapshots" value="%{#attr.repository.snapshots}"/>
123       <s:hidden name="repository.scanned" value="%{#attr.repository.scanned}"/>
124       <s:hidden name="repository.deleteReleasedSnapshots" value="%{#attr.repository.deleteReleasedSnapshots}"/>
125       
126       <c:choose>      
127         <c:when test="${action == 'addRepository'}">
128           <s:submit value="Save" method="confirmAdd"/>
129         </c:when>
130         <c:otherwise>
131           <s:submit value="Save" method="confirmUpdate"/>
132         </c:otherwise>
133      </c:choose>
134       
135       <s:submit value="Cancel" method="execute"/>
136     </div>
137   </s:form>
138   
139 </body>
140 </html>