From 74d149d55715e1a71945befcce0a2105b024c3fb Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Sat, 25 Nov 2006 01:13:35 +0000 Subject: [PATCH] Moved the Managed Repository administration out of the main Administration page and onto its own page. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@479065 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-webapp/src/main/resources/xwork.xml | 10 +- .../main/webapp/WEB-INF/jsp/admin/index.jsp | 105 ------------- .../WEB-INF/jsp/admin/managedRepositories.jsp | 139 ++++++++++++++++++ .../webapp/WEB-INF/jsp/decorators/default.jsp | 3 + 4 files changed, 149 insertions(+), 108 deletions(-) create mode 100644 archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp diff --git a/archiva-webapp/src/main/resources/xwork.xml b/archiva-webapp/src/main/resources/xwork.xml index 021d2e9cb..0b7f19c8f 100644 --- a/archiva-webapp/src/main/resources/xwork.xml +++ b/archiva-webapp/src/main/resources/xwork.xml @@ -190,21 +190,25 @@ /WEB-INF/jsp/admin/index.jsp + + /WEB-INF/jsp/admin/managedRepositories.jsp + + /WEB-INF/jsp/admin/addRepository.jsp - index + managedRepositories /WEB-INF/jsp/admin/editRepository.jsp - index + managedRepositories /WEB-INF/jsp/admin/deleteRepository.jsp - index + managedRepositories diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp index 0b896a6fa..9b73d566b 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp @@ -79,110 +79,5 @@ -${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/repository/ - -
-
- <%-- TODO replace with icons --%> - - - Add Repository - -
-

Managed Repositories

-
- - - - There are no managed repositories configured yet. - - -
-
- - - - - - - <%-- TODO replace with icons --%> - Edit Repository - Delete Repository -
-

${repository.name}

- - - - - - - - - - - - - - - - <%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%> - - - - - - - - - - - - - - -
Identifier - ${repository.id} -
Directory${repository.directory}
WebDAV URL${urlbase}${repository.urlName}
Type - - - Maven 2.x Repository - - - Maven 1.x Repository - - -
Snapshots Included ${repository.includeSnapshots}
Indexed ${repository.indexed}
POM SnippetShow POM Snippet
- -
-
-
- - diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp new file mode 100644 index 000000000..4fcf44189 --- /dev/null +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp @@ -0,0 +1,139 @@ +<%-- + ~ Copyright 2005-2006 The Apache Software Foundation. + ~ + ~ 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 + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + --%> + +<%@ taglib prefix="ww" uri="/webwork" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="pss" uri="/plexusSecuritySystem" %> + + + + Administration + + + + + +

Administration

+ +
+ +${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/repository/ + +
+
+ <%-- TODO replace with icons --%> + + + Add Repository + +
+

Managed Repositories

+
+ + + + There are no managed repositories configured yet. + + +
+
+ + + + + + + <%-- TODO replace with icons --%> + Edit Repository + Delete Repository +
+

${repository.name}

+ + + + + + + + + + + + + + + + <%-- TODO: can probably just use layout appended to a key prefix in i18n to simplify this --%> + + + + + + + + + + + + + + +
Identifier + ${repository.id} +
Directory${repository.directory}
WebDAV URL${urlbase}${repository.urlName}
Type + + + Maven 2.x Repository + + + Maven 1.x Repository + + +
Snapshots Included ${repository.includeSnapshots}
Indexed ${repository.indexed}
POM SnippetShow POM Snippet
+ +
+
+
+
+ + + diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp index dea89d35c..fe81fdfc9 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp @@ -119,6 +119,9 @@
    +
  • + Managed Repositories +
  • Proxied Repositories
  • -- 2.39.5