diff gnv/src/main/webapp/WEB-INF/jsp/includes/display_export_inc.jsp @ 410:9602f4bffc07

Added statistic to the actions if available. gnv/trunk@604 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 22 Jan 2010 13:58:30 +0000
parents b5733f9f386b
children 49898531c0b6
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_export_inc.jsp	Fri Jan 22 11:28:25 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_export_inc.jsp	Fri Jan 22 13:58:30 2010 +0000
@@ -18,6 +18,7 @@
     String targetSVG = "svg";
     String targetZIP = "zip";
     String targetWMS = "wms";
+    String targetSta = "statistics";
 
     boolean supportChart = sm.getOutputMode(target)    != null;
     boolean supportCSV   = sm.getOutputMode(targetCSV) != null;
@@ -26,6 +27,7 @@
     boolean supportSVG   = sm.getOutputMode(targetSVG) != null;
     boolean supportZIP   = sm.getOutputMode(targetZIP) != null;
     boolean supportWMS   = sm.getOutputMode(targetWMS) != null;
+    boolean supportSta   = sm.getOutputMode(targetSta) != null;
 
     if (supportChart){
         mimeType = sm.getOutputMode(target).getMimeType();
@@ -111,6 +113,12 @@
                 <img src="images/disk.png" border="0"/>
             </a>
             <%}%>
+
+            <%if (supportSta) { %>
+                <a href="<%=response.encodeURL("statistic.do")%>" title="<bean:message key="gnviewer.statistic.button"/>">
+                    <img src="images/statistics.png" border="0"/>
+                </a>
+            <%}%>
         </fieldset>
     </div>
 <%}%>

http://dive4elements.wald.intevation.org