mirror of https://github.com/apache/archiva.git
Reverting reformatting.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@492246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15afdc0740
commit
a1365a4678
|
@ -1,20 +1,17 @@
|
||||||
<%--
|
<%--
|
||||||
~ Licensed to the Apache Software Foundation (ASF) under one
|
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||||
~ or more contributor license agreements. See the NOTICE file
|
|
||||||
~ distributed with this work for additional information
|
|
||||||
~ regarding copyright ownership. The ASF licenses this file
|
|
||||||
~ to you under the Apache License, Version 2.0 (the
|
|
||||||
~ "License"); you may not use this file except in compliance
|
|
||||||
~ with the License. You may obtain a copy of the License at
|
|
||||||
~
|
~
|
||||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
~ you may not use this file except in compliance with the License.
|
||||||
|
~ You may obtain a copy of the License at
|
||||||
~
|
~
|
||||||
~ Unless required by applicable law or agreed to in writing,
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||||
~ software distributed under the License is distributed on an
|
~
|
||||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
~ Unless required by applicable law or agreed to in writing, software
|
||||||
~ KIND, either express or implied. See the License for the
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
~ specific language governing permissions and limitations
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
~ under the License.
|
~ See the License for the specific language governing permissions and
|
||||||
|
~ limitations under the License.
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||||
|
@ -33,9 +30,8 @@
|
||||||
|
|
||||||
<div id="contentArea">
|
<div id="contentArea">
|
||||||
|
|
||||||
<c:set var="urlbase">${pageContext.request.scheme}://${pageContext.request.serverName}
|
<%-- DO NOT REFORMAT THIS LINE --%>
|
||||||
:${pageContext.request.serverPort}${pageContext.request.contextPath}/repository/
|
<c:set var="urlbase">${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/repository/</c:set>
|
||||||
</c:set>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div style="float: right">
|
<div style="float: right">
|
||||||
|
@ -54,94 +50,91 @@
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:forEach items="${repositories}" var="repository" varStatus="i">
|
<c:forEach items="${repositories}" var="repository" varStatus="i">
|
||||||
<pss:ifAnyAuthorized permissions="archiva-edit-repository, archiva-delete-repository" resource="${repository.id}">
|
<pss:ifAnyAuthorized permissions="archiva-edit-repository, archiva-delete-repository" resource="${repository.id}">
|
||||||
<div>
|
<div>
|
||||||
<div style="float: right">
|
<div style="float: right">
|
||||||
<ww:url id="editRepositoryUrl" action="editRepository" method="input">
|
<ww:url id="editRepositoryUrl" action="editRepository" method="input">
|
||||||
<ww:param name="repoId" value="%{'${repository.id}'}"/>
|
<ww:param name="repoId" value="%{'${repository.id}'}" />
|
||||||
</ww:url>
|
</ww:url>
|
||||||
<ww:url id="deleteRepositoryUrl" action="deleteRepository" method="input">
|
<ww:url id="deleteRepositoryUrl" action="deleteRepository" method="input">
|
||||||
<ww:param name="repoId" value="%{'${repository.id}'}"/>
|
<ww:param name="repoId" value="%{'${repository.id}'}" />
|
||||||
</ww:url>
|
</ww:url>
|
||||||
<%-- TODO replace with icons --%>
|
<%-- TODO replace with icons --%>
|
||||||
<ww:a href="%{editRepositoryUrl}">Edit Repository</ww:a>
|
<ww:a href="%{editRepositoryUrl}">Edit Repository</ww:a>
|
||||||
<ww:a href="%{deleteRepositoryUrl}">Delete Repository</ww:a>
|
<ww:a href="%{deleteRepositoryUrl}">Delete Repository</ww:a>
|
||||||
</div>
|
</div>
|
||||||
<h3>${repository.name}</h3>
|
<h3>${repository.name}</h3>
|
||||||
<table class="infoTable">
|
<table class="infoTable">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Identifier</th>
|
<th>Identifier</th>
|
||||||
<td>
|
<td>
|
||||||
<code>${repository.id}</code>
|
<code>${repository.id}</code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Directory</th>
|
<th>Directory</th>
|
||||||
<td>${repository.directory}</td>
|
<td>${repository.directory}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>WebDAV URL</th>
|
<th>WebDAV URL</th>
|
||||||
<td><a href="${urlbase}${repository.urlName}">${urlbase}${repository.urlName}</a></td>
|
<td><a href="${urlbase}${repository.urlName}">${urlbase}${repository.urlName}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%>
|
<%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%>
|
||||||
<td>
|
<td>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${repository.layout == 'default'}">
|
<c:when test="${repository.layout == 'default'}">
|
||||||
Maven 2.x Repository
|
Maven 2.x Repository
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
Maven 1.x Repository
|
Maven 1.x Repository
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Snapshots Included</th>
|
<th>Snapshots Included</th>
|
||||||
<td class="${repository.includeSnapshots ? 'doneMark' : 'errorMark'} booleanIcon"> ${repository.includeSnapshots}</td>
|
<td class="${repository.includeSnapshots ? 'doneMark' : 'errorMark'} booleanIcon"> ${repository.includeSnapshots}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Indexed</th>
|
<th>Indexed</th>
|
||||||
<td class="${repository.indexed ? 'doneMark' : 'errorMark'} booleanIcon"> ${repository.indexed}</td>
|
<td class="${repository.indexed ? 'doneMark' : 'errorMark'} booleanIcon"> ${repository.indexed}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>POM Snippet</th>
|
<th>POM Snippet</th>
|
||||||
<td><a href="#" onclick="Effect.toggle('repoPom${repository.id}','slide'); return false;">Show POM Snippet</a><br/>
|
<td><a href="#" onclick="Effect.toggle('repoPom${repository.id}','slide'); return false;">Show POM Snippet</a><br />
|
||||||
|
<%-- DO NOT REFORMAT THIS SECTION --%>
|
||||||
<pre class="pom" style="display: none;" id="repoPom${repository.id}"><code><project>
|
<pre class="pom" style="display: none;" id="repoPom${repository.id}"><code><project>
|
||||||
...
|
...
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<${repository.includeSnapshots ? 'snapshotRepository' : 'repository'}>
|
<${repository.includeSnapshots ? 'snapshotRepository' : 'repository'}>
|
||||||
<id>${repository.id}</id>
|
<id>${repository.id}</id>
|
||||||
<url>dav:${urlbase}${repository.urlName}</url>
|
<url>dav:${urlbase}${repository.urlName}</url><c:if test="${repository.layout != 'default'}">
|
||||||
<c:if test="${repository.layout != 'default'}">
|
<layout>${repository.layout}</layout></c:if>
|
||||||
<layout>${repository.layout}</layout>
|
</${repository.includeSnapshots ? 'snapshotRepository' : 'repository'}>
|
||||||
</c:if>
|
|
||||||
</${repository.includeSnapshots ? 'snapshotRepository' : 'repository'}>
|
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>${repository.id}</id>
|
<id>${repository.id}</id>
|
||||||
<name>${repository.name}</name>
|
<name>${repository.name}</name>
|
||||||
<url>${urlbase}${repository.urlName}</url>
|
<url>${urlbase}${repository.urlName}</url><c:if test="${repository.layout != 'default'}">
|
||||||
<c:if test="${repository.layout != 'default'}">
|
<layout>${repository.layout}</layout></c:if>
|
||||||
<layout>${repository.layout}</layout>
|
<releases>
|
||||||
</c:if>
|
<enabled>${repository.includeSnapshots ? 'false' : 'true'}</enabled>
|
||||||
<releases>
|
</releases>
|
||||||
<enabled>${repository.includeSnapshots ? 'false' : 'true'}</enabled>
|
<snapshots>
|
||||||
</releases>
|
<enabled>${repository.includeSnapshots ? 'true' : 'false'}</enabled>
|
||||||
<snapshots>
|
</snapshots>
|
||||||
<enabled>${repository.includeSnapshots ? 'true' : 'false'}</enabled>
|
</repository>
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
</repositories>
|
||||||
...
|
...
|
||||||
</project>
|
</project>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</pss:ifAnyAuthorized>
|
</pss:ifAnyAuthorized>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue