Author: chathura
Date: Mon Jan 28 21:25:25 2008
New Revision: 13102

Log:


Added the active resource links.



Modified:
   
branches/registry/1_0/modules/webapps/src/main/java/org/wso2/registry/web/actions/ResourceDetailsAction.java
   
branches/registry/1_0/modules/webapps/src/main/webapp/admin/registry-resources.jsp

Modified: 
branches/registry/1_0/modules/webapps/src/main/java/org/wso2/registry/web/actions/ResourceDetailsAction.java
==============================================================================
--- 
branches/registry/1_0/modules/webapps/src/main/java/org/wso2/registry/web/actions/ResourceDetailsAction.java
        (original)
+++ 
branches/registry/1_0/modules/webapps/src/main/java/org/wso2/registry/web/actions/ResourceDetailsAction.java
        Mon Jan 28 21:25:25 2008
@@ -512,6 +512,14 @@
         this.path = path;
     }
 
+    public String getActiveResourcePath() {
+        return activeResourcePath;
+    }
+
+    public void setActiveResourcePath(String activeResourcePath) {
+        this.activeResourcePath = activeResourcePath;
+    }
+
     public String getRelativePath() {
         return relativePath;
     }

Modified: 
branches/registry/1_0/modules/webapps/src/main/webapp/admin/registry-resources.jsp
==============================================================================
--- 
branches/registry/1_0/modules/webapps/src/main/webapp/admin/registry-resources.jsp
  (original)
+++ 
branches/registry/1_0/modules/webapps/src/main/webapp/admin/registry-resources.jsp
  Mon Jan 28 21:25:25 2008
@@ -108,7 +108,7 @@
 <div style="margin-bottom:10px;">
 <% if (details.isVersionView()) { %>
 
-            <div class="versionsToolBar"><img 
src="/wso2registry/admin/images/back.gif" align="top" vspace="2" /> <a 
href="#">Back to Versions of </a> | <img 
src="/wso2registry/admin/images/icon-restore.gif" border="0" align="top" 
vspace="2"  /> <a 
href="/wso2registry/system/restore?versionPath=<%=details.getPath()%>" 
title="Restore" style="margin-left:5px;"> Restore to this version </a></div>
+            <div class="versionsToolBar"><img 
src="/wso2registry/admin/images/back.gif" align="top" vspace="2" /> <a 
href="/wso2registry/versions<%=details.getActiveResourcePath()%>">Back to 
Versions of <%=details.getActiveResourcePath()%></a> | <img 
src="/wso2registry/admin/images/icon-restore.gif" border="0" align="top" 
vspace="2"  /> <a 
href="/wso2registry/system/restore?versionPath=<%=details.getPath()%>" 
title="Restore" style="margin-left:5px;"> Restore to this version </a></div>
         <% } %>
     <!-- all the content goes here -->
     <table cellpadding="0" cellspacing="0" border="0" 
class="simple-data-table">

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to