]> source.dussan.org Git - archiva.git/blob
8ccbfda683228d3c3ce228a4a74077548fdc34da
[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
45         <c:if test="${!repository.snapshots and repository.releases}">
46           <div class="warningbox">
47             <p>
48               <strong>WARNING:  Repository  "${repoid}" does not allow to merge snapshots</strong>
49             </p>
50           </div>
51         </c:if>
52
53         <s:form method="post" action="merge" namespace="/admin" validate="false" theme="simple">
54           <s:hidden name="repoid"/>
55           <div class="buttons">
56             <s:submit value="Merge All" method="doMerge"/>
57           </div>
58         </s:form>
59       </c:when>
60       <c:otherwise>
61         <div class="warningbox">
62           <c:if test="${!repository.snapshots and repository.releases}">
63             <p>
64               <strong>WARNING:  Repository "${repoid}" does not allow to merge snapshots</strong>
65             </p>
66           </c:if>
67           <p>
68             <strong>WARNING: The following are the artifacts in conflict.</strong>
69           </p>
70         </div>
71         <c:forEach items="${conflictSourceArtifactsToBeDisplayed}" var="artifact">
72           <tr>
73             <td>Artifact Id :</td>
74             <%--<td><code>${artifact.id}</code></td>--%>
75             <td align="left"> <code>${artifact.namespace} ${" "} ${artifact.project}  ${" "} ${artifact.version}</code></td>
76           </tr>
77         </c:forEach>
78         <tr>
79           <td>
80             <s:form action="merge" method="post" namespace="/admin" validate="false">
81               <s:hidden name="repoid"/>
82               <div class="buttons">
83                 <table>
84                   <tr>
85                     <td>
86                       <table>
87                         <tr>
88                           <td>
89                             <s:submit value="Merge All" method="doMerge"/>
90                           </td>
91                         </tr>
92                       </table>
93                     </td>
94                     <td>
95                       <table>
96                         <tr>
97                           <td>
98                             <s:submit value="Merge With Skip" method="mergeBySkippingConflicts"/>
99                           </td>
100                         </tr>
101                       </table>
102                     </td>
103                   </tr>
104                 </table>
105               </div>
106             </s:form>
107           </td>
108         </tr>
109       </c:otherwise>
110     </c:choose>
111   </table>
112 </div>
113 </body>
114 </html>