Just adding breadcrumbs
--- a/ckanext/ga_report/templates/ga_report/publisher/index.html
+++ b/ckanext/ga_report/templates/ga_report/publisher/index.html
@@ -6,7 +6,6 @@
<xi:include href="../ga_util.html" />
<py:def function="page_title">Usage by Publisher</py:def>
-
<py:def function="sidebar">
@@ -25,7 +24,14 @@
<script type="text/javascript" src="/scripts/vendor/d3.layout.min.js"></script>
<script type="text/javascript" src="/scripts/vendor/rickshaw.min.js"></script>
</py:def>
- <py:def function="page_heading">Site Usage ${usage_nav('Publishers')}</py:def>
+
+ <py:match path="breadcrumbs">
+ <li><a href="/data/search">Datasets</a></li>
+ <li><a href="/data/site-usage">Site-usage</a></li>
+ <li><a href="/data/site-usage/publisher">Publishers</a></li>
+ </py:match>
+
+
<div py:match="content">
--- a/ckanext/ga_report/templates/ga_report/publisher/read.html
+++ b/ckanext/ga_report/templates/ga_report/publisher/read.html
@@ -22,7 +22,15 @@
<py:def function="sidebar">
${ga_sidebar(download_link=h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport',action='dataset_csv',id=c.publisher_name or 'all',month=c.month or 'all'))}
</py:def>
- <py:def function="page_heading">Site Usage ${usage_nav('Datasets')}</py:def>
+
+ <py:match path="breadcrumbs">
+ <li><a href="/data/search">Datasets</a></li>
+ <li><a href="/data/site-usage">Site-usage</a></li>
+ <li><a href="/data/site-usage/publisher">Publishers</a></li>
+ <li><a href="/data/site-usage/publisher/${c.publisher.name}">${c.publisher.title}</a></li>
+ </py:match>
+
+
<div py:match="content">
--- a/ckanext/ga_report/templates/ga_report/site/index.html
+++ b/ckanext/ga_report/templates/ga_report/site/index.html
@@ -23,7 +23,13 @@
${ga_sidebar(download_link=h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv',month=c.month or 'all'))}
</py:def>
- <py:def function="page_heading">Site Usage ${usage_nav('Site-wide')}</py:def>
+
+ <py:match path="breadcrumbs">
+ <li><a href="/data/search">Datasets</a></li>
+ <li><a href="/data/site-usage">Site-usage</a></li>
+ <li><a href="/data/site-usage">Site-wide</a></li>
+ </py:match>
+
<div py:match="content">
@@ -168,7 +174,7 @@
CKAN.GA_Reports.bind_sparklines();
CKAN.GA_Reports.bind_sidebar();
CKAN.GA_Reports.bind_month_selector();
- });
+ });
</script>
</py:def>