--- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -10,6 +10,7 @@ <py:def function="optional_head"> <link rel="stylesheet" type="text/css" href="/scripts/vendor/rickshaw.min.css"/> <link rel="stylesheet" type="text/css" href="/css/ga_report.css?1"/> + <script type="text/javascript" src="/scripts/modernizr-2.6.2.custom.js"></script> <script type="text/javascript" src="/scripts/ckanext_ga_reports.js?1"></script> <script type="text/javascript" src="/scripts/vendor/jquery.sparkline.modified.js"></script> <script type="text/javascript" src="/scripts/rickshaw_ie7_shim.js"></script> @@ -18,13 +19,26 @@ <script type="text/javascript" src="/scripts/vendor/rickshaw.min.js"></script> </py:def> - <py:match path="primarysidebar"> + <py:def function="sidebar"> ${ga_sidebar(download_link=h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv',month=c.month or 'all'))} + </py:def> + + + <py:match path="breadcrumbs"> + <li><a href="/data/site-usage">Site Analytics</a></li> + <li><a href="/data/site-usage">Site-wide</a></li> </py:match> - <py:def function="page_heading">Site Usage ${usage_nav('Site-wide')}</py:def> <div py:match="content"> + + <h3 style='text-align:center;'> + Site-wide + <span style="color: #bbb;margin:10px;">|</span> + <a href="/data/site-usage/publisher">Publishers</a> + <span style="color: #bbb;margin:10px;">|</span> + <a href="/data/site-usage/dataset">Datasets</a> + </h3> <div class="boxed"> <div class="tabbable"> @@ -167,7 +181,7 @@ CKAN.GA_Reports.bind_sparklines(); CKAN.GA_Reports.bind_sidebar(); CKAN.GA_Reports.bind_month_selector(); - }); + }); </script> </py:def>