[Yanel-commits] rev 37267 -
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Fri Jun 27 16:07:04 CEST 2008
Author: michi
Date: 2008-06-27 16:07:04 +0200 (Fri, 27 Jun 2008)
New Revision: 37267
Modified:
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
Log:
do not show go-up icon if node is root node
Modified: public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2008-06-27 13:56:03 UTC (rev 37266)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2008-06-27 14:07:04 UTC (rev 37267)
@@ -668,14 +668,18 @@
String parent = "/";
if (!node.getPath().equals("/")) {
parent = new org.wyona.commons.io.Path(node.getPath()).getParent().toString();
- }
- if (log.isDebugEnabled()) log.debug("Parent: " + parent);
- if (ajaxBrowser) {
- sb.append("<a href=\"JavaScript:ajaxlookup('" + resNamespace + "::" + resName + "', '" + parent + "')\"><img src=\"" + PathUtil.getGlobalHtdocsPath(this) + "yanel-img/icons/go-up.png\" alt=\"go up\" border=\"0\"/></a>");
+ if (log.isDebugEnabled()) log.debug("Parent: " + parent);
+
+ if (ajaxBrowser) {
+ sb.append("<a href=\"JavaScript:ajaxlookup('" + resNamespace + "::" + resName + "', '" + parent + "')\"><img src=\"" + PathUtil.getGlobalHtdocsPath(this) + "yanel-img/icons/go-up.png\" alt=\"go up\" border=\"0\"/></a>");
+ } else {
+ sb.append("<a href=\"?lookin=" + parent + "&resource-type=" + resNamespace + "::" + resName + "\"><img src=\"" + PathUtil.getGlobalHtdocsPath(this) + "yanel-img/icons/go-up.png\" alt=\"go up\" border=\"0\"/></a>");
+ }
} else {
- sb.append("<a href=\"?lookin=" + parent + "&resource-type=" + resNamespace + "::" + resName + "\"><img src=\"" + PathUtil.getGlobalHtdocsPath(this) + "yanel-img/icons/go-up.png\" alt=\"go up\" border=\"0\"/></a>");
+ // Do not display "go-up" if current node is root node
}
+
sb.append("</td></tr>");
sb.append("<tr><td colspan=\"2\">");
More information about the Yanel-commits
mailing list