Author: ssolsagl
Date: 2007-04-27 22:08:22 +0200 (Fri, 27 Apr 2007)
New Revision: 4918
Modified:
trunk/war/src/webapp/WEB-INF/jsp/decorators/httpDecorator.jsp
Log:
linkText switches between on/off
Modified: trunk/war/src/webapp/WEB-INF/jsp/decorators/httpDecorator.jsp
===================================================================
--- trunk/war/src/webapp/WEB-INF/jsp/decorators/httpDecorator.jsp
2007-04-27 19:23:29 UTC (rev 4917)
+++ trunk/war/src/webapp/WEB-INF/jsp/decorators/httpDecorator.jsp
2007-04-27 20:08:22 UTC (rev 4918)
@@ -26,13 +26,15 @@
}
%>
<%
+ boolean VELOCITY_DEBUG_ON =
"true".equals(System.getProperty("VELOCITY_DEBUG_ON"));
String background = "#DDDDDD";
String color = "black";
+ String linkText = VELOCITY_DEBUG_ON ? "Off" : "On";
%>
<div width="100%"
style="font-size:12px;background-color:<%=background%>;border:1px solid
#C0C0C0; color:<%=color%>">
DeveloperBar:
- VelocityDebug: <a style="color: blue"
href="/servlet/VelocityDebug?<%= request.getQueryString()%>"> On/Off </a>
+ VelocityDebug: <a style="color: blue"
href="/servlet/VelocityDebug?<%= request.getQueryString()%>"> <%= linkText %>
</a>
|
TemplatePath: <%= loadPath %>
</div>
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits