Author: brett
Date: Wed Sep 12 05:10:08 2007
New Revision: 574903

URL: http://svn.apache.org/viewvc?rev=574903&view=rev
Log:
[MRM-457] don't display the snapshot removal options in the repository list 
page if snapshots are not included

Modified:
    
maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp

Modified: 
maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp?rev=574903&r1=574902&r2=574903&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
 (original)
+++ 
maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositories.jsp
 Wed Sep 12 05:10:08 2007
@@ -131,14 +131,6 @@
   </td>
 </tr>
 <tr>
-  <th>Repository Purge By Days Older Than</th>
-  <td>${repository.daysOlder}</td>
-</tr>
-<tr>
-  <th>Repository Purge By Retention Count</th>
-  <td>${repository.retentionCount}</td>
-</tr>
-<tr>
   <th>Releases Included</th>
   <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon"> 
${repository.releases}</td>
 </tr>
@@ -146,13 +138,23 @@
   <th>Snapshots Included</th>
   <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon"> 
${repository.snapshots}</td>
 </tr>
+<c:if test="${repository.snapshots}">
+  <tr>
+    <th>Delete Released Snapshots</th>
+    <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 
'errormark'} booleanIcon"> ${repository.deleteReleasedSnapshots}</td>
+  </tr>
+  <tr>
+    <th>Repository Purge By Days Older Than</th>
+    <td>${repository.daysOlder}</td>
+  </tr>
+  <tr>
+    <th>Repository Purge By Retention Count</th>
+    <td>${repository.retentionCount}</td>
+  </tr>
+</c:if>
 <tr>
   <th>Scanned</th>
   <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon"> 
${repository.scanned}</td>
-</tr>
-<tr>
-  <th>Delete Released Snapshots</th>
-  <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} 
booleanIcon"> ${repository.deleteReleasedSnapshots}</td>
 </tr>
 <c:if test="${repository.scanned}">
   <tr>


Reply via email to