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