]> source.dussan.org Git - archiva.git/blob
371368423ed16fa507012386049c196d6e2febf1
[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: Merge Staging Repository</title>
27   <s:head/>
28 </head>
29
30 <body>
31
32 <h1>Admin: Merge Staging Repository</h1>
33
34 <p>
35   Are you sure you want to merge the repository?
36 </p>
37
38 <div class="infobox">
39   <table class="infotable">
40
41     <c:choose>
42       <c:when test="${empty (conflictSourceArtifacts)}">
43         <h1>No conflicting artifacts</h1>
44         <s:form method="post" action="merge" namespace="/admin" validate="false" theme="simple">
45           <s:hidden name="repoid"/>
46           <div class="buttons">
47             <s:submit value="Merge All" method="doMerge"/>
48           </div>
49         </s:form>
50       </c:when>
51       <c:otherwise>
52         <div class="warningbox">
53           <p>
54             <strong>WARNING: The following are the artifacts in conflict.</strong>
55           </p>
56         </div>
57         <c:forEach items="${conflictSourceArtifactsToBeDisplayed}" var="artifact">
58           <tr>
59             <td>Artifact Id :</td>
60             <%--<td><code>${artifact.id}</code></td>--%>
61             <td align="left"> <code>${artifact.namespace} ${" "} ${artifact.project}  ${" "} ${artifact.version}</code></td>
62           </tr>
63         </c:forEach>
64         <tr>
65           <td>
66             <s:form action="merge" method="post" namespace="/admin" validate="false">
67               <s:hidden name="repoid"/>
68               <div class="buttons">
69                 <table>
70                   <tr>
71                     <td>
72                       <table>
73                         <tr>
74                           <td>
75                             <s:submit value="Merge All" method="doMerge"/>
76                           </td>
77                         </tr>
78                       </table>
79                     </td>
80                     <td>
81                       <table>
82                         <tr>
83                           <td>
84                             <s:submit value="Merge With Skip" method="mergeBySkippingConflicts"/>
85                           </td>
86                         </tr>
87                       </table>
88
89                     </td>
90                   </tr>
91                 </table>
92               </div>
93             </s:form>
94           </td>
95         </tr>
96       </c:otherwise>
97     </c:choose>
98   </table>
99 </div>
100 </body>
101 </html>