diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-08-04 03:58:22 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-08-04 03:58:22 +0000 |
commit | fd144735f727fc3ae99ce96fbd8706d2d232a6f8 (patch) | |
tree | 47ead0991fb6c091de5d90c7252d74593aa49e36 | |
parent | 28c3b26be03e5ed02abd8eabc58485abe577df0d (diff) | |
download | archiva-fd144735f727fc3ae99ce96fbd8706d2d232a6f8.tar.gz archiva-fd144735f727fc3ae99ce96fbd8706d2d232a6f8.zip |
[MRM-873]
submitted by Gwen Harold Autencio
-do not display the up image link of the first repository and do not display the down image link of the last repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@682250 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryGroups.jsp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryGroups.jsp b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryGroups.jsp index c9d577fb3..a7adb53fe 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryGroups.jsp +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryGroups.jsp @@ -93,6 +93,8 @@ </div> </c:if> + <c:set var="numberOfRepos" value="${fn:length(repositoryGroup.value.repositories)}" /> + <c:forEach items="${repositoryGroup.value.repositories}" var="repository" varStatus="r"> <c:choose> @@ -119,12 +121,16 @@ <ww:param name="repoGroupId" value="%{'${repositoryGroup.key}'}"/> <ww:param name="repoId" value="managedRepositories['${repository}'].id"/> </ww:url> - <ww:a href="%{sortUpRepositoryUrl}" cssClass="up" title="Move Repository Up"> - <img src="${iconUpUrl}"/> - </ww:a> - <ww:a href="%{sortDownRepositoryUrl}" cssClass="down" title="Move Repository Down"> - <img src="${iconDownUrl}"/> - </ww:a> + <c:if test="${r.count > 1}"> + <ww:a href="%{sortUpRepositoryUrl}" cssClass="up" title="Move Repository Up"> + <img src="${iconUpUrl}"/> + </ww:a> + </c:if> + <c:if test="${r.count < numberOfRepos}"> + <ww:a href="%{sortDownRepositoryUrl}" cssClass="down" title="Move Repository Down"> + <img src="${iconDownUrl}"/> + </ww:a> + </c:if> <ww:a href="%{removeRepositoryUrl}" cssClass="delete" title="Delete Repository"> <img src="${iconDeleteUrl}"/> </ww:a> @@ -148,4 +154,4 @@ </div> <%-- content area --%> </c:otherwise> -</c:choose>
\ No newline at end of file +</c:choose> |