Adding site analytics at /data/analytics
[ckanext-ga-report.git] / ckanext / ga_report / templates / ga_report / site / index.html
blob:a/ckanext/ga_report/templates/ga_report/site/index.html -> blob:b/ckanext/ga_report/templates/ga_report/site/index.html
--- a/ckanext/ga_report/templates/ga_report/site/index.html
+++ b/ckanext/ga_report/templates/ga_report/site/index.html
@@ -4,6 +4,14 @@
   py:strip="">
 
   <py:def function="page_title">Site analytics</py:def>
+
+  <py:match path="primarysidebar">
+    <li class="widget-container boxed widget_text">
+      <h4>Statistics</h4>
+        <p>It is possible to <a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv',month=c.month)}">export the analytics data</a> as a CSV file, which contains all of the information for ${c.month_desc}</p>
+
+    </li>
+  </py:match>
 
   <div py:match="content">
       <h1>Site statistics</h1>
@@ -18,8 +26,6 @@
            <input class="btn button" type='submit' value="Update"/>
           </div>
        </form>
-
-    <p><a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv',month=c.month)}">Export data</a> as CSV</p>
 
     <div class="tabbable">
       <ul class="nav nav-tabs">