--- a/ckanext/ga_report/templates/ga_report/publisher/index.html +++ b/ckanext/ga_report/templates/ga_report/publisher/index.html @@ -10,6 +10,7 @@ <py:match path="primarysidebar"> <li class="widget-container boxed widget_text"> <h4>Download</h4> + <hr/> <p><center> <a class="btn button btn-primary" href="${h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport',action='publisher_csv',month=c.month or 'all')}">Download as CSV</a></center> </p> @@ -42,7 +43,7 @@ </tr> <py:for each="publisher, views, visits in c.top_publishers"> <tr> - <td>${h.link_to(publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport', action='read_publisher', id=publisher.name))} + <td>${h.link_to(publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport', action='read_publisher', id=publisher.name) + ("?month=" + c.month) if c.month else '')} </td> <!-- <td>${visits}</td> --> <td>${views}</td>