From 6b21148ea3ac746653eb9eb3715c138faf88b8fb Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sat, 30 Sep 2006 12:11:16 +0000 Subject: [MRM-144] clean up artifact links git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@451586 13f79535-47bb-0310-9956-ffa450edef68 --- .../WEB-INF/jsp/include/artifactDependencies.jspf | 60 +------------- .../webapp/WEB-INF/jsp/include/dependencyTree.jspf | 52 +++++------- .../main/webapp/WEB-INF/jsp/reports/reports.jsp | 92 +++------------------- .../main/webapp/WEB-INF/tags/showArtifactLink.tag | 90 +++++++++++++++++++++ 4 files changed, 125 insertions(+), 169 deletions(-) create mode 100644 archiva-webapp/src/main/webapp/WEB-INF/tags/showArtifactLink.tag (limited to 'archiva-webapp') diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf b/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf index 32477f58a..3f15e6bed 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/artifactDependencies.jspf @@ -1,5 +1,6 @@ <%@ taglib prefix="ww" uri="/webwork" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %> <%-- TODO: paginate! --%> @@ -25,63 +26,10 @@ ${dependency.artifactId} - <%-- TODO! use CSS, share with search results --%>

- - <%-- TODO! share with browse as a tag --%> - - - - - - - - - - - - - - - - ${part} / - - ${dependency.artifactId} - | Version(s): - - - - - - - - - - - - ${dependency.version} - - - - - - - - - - - ${version} - , - - - - - | Scope: ${dependency.scope} - - - | Classifier: ${dependency.classifier} - - +

diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/dependencyTree.jspf b/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/dependencyTree.jspf index a86b779a3..55a9ecc51 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/dependencyTree.jspf +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/dependencyTree.jspf @@ -18,37 +18,27 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %> - -
  • - - - +
  • + + +
      +
    • + + +
    • + + + +
    • + +
    \ No newline at end of file diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/reports.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/reports.jsp index 2d234144c..f44b2bc37 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/reports.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/reports/reports.jsp @@ -19,6 +19,7 @@ <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="pss" uri="/plexusSecuritySystem" %> +<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %> @@ -34,7 +35,7 @@
    - + - + ${database.repository.id} @@ -84,8 +85,9 @@ ${database.numNotices} - <%-- TODO! use better formatting here --%> - Last updated: ${database.reporting.lastModified}, + + + Last updated: , execution time: minutes seconds @@ -99,7 +101,6 @@

    <%-- TODO need to protect iterations against concurrent modification exceptions by cloning the lists synchronously --%> - <%-- TODO! factor out common parts, especially artifact rendering tag --%> <%-- TODO! paginate (displaytag?) --%>

    Artifacts

    @@ -116,41 +117,8 @@

    - - <%-- TODO! share with browse as a tag --%> - - - - - - - - - - - - - - - - ${part} / - - ${artifact.artifactId} - | Version: - - - - - - - - - - ${artifact.version} - - | Classifier: ${artifact.classifier} - - +

    <%-- TODO! @@ -179,48 +147,8 @@

    - - <%-- TODO! share with browse as a tag --%> - - - - - - - - - - - - - - - - ${part} - - / - - - - - - - - - - / ${metadata.artifactId} - - | Version: - - - - - - - - ${metadata.version} - - +

    <%-- TODO! diff --git a/archiva-webapp/src/main/webapp/WEB-INF/tags/showArtifactLink.tag b/archiva-webapp/src/main/webapp/WEB-INF/tags/showArtifactLink.tag new file mode 100644 index 000000000..789c2de09 --- /dev/null +++ b/archiva-webapp/src/main/webapp/WEB-INF/tags/showArtifactLink.tag @@ -0,0 +1,90 @@ +<%-- + ~ 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 uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ attribute name="groupId" required="true" %> +<%@ attribute name="artifactId" %> +<%@ attribute name="version" %> +<%@ attribute name="classifier" %> +<%@ attribute name="scope" %> +<%@ attribute name="versions" %> + + + + + + + + + + + + + + + + + + ${part} + + / + + + + + + + + + + / ${artifactId} + + | Version(s): + + + + + + + + + + + + ${version} + + + + + + + + + + + ${v} + , + + + + + | Scope: ${scope} + + + | Classifier: ${classifier} + + -- cgit v1.2.3