--- a/ckanext/ga_report/templates/ga_report/publisher/read.html +++ b/ckanext/ga_report/templates/ga_report/publisher/read.html @@ -7,11 +7,14 @@ <py:def function="page_title">Usage by Dataset</py:def> + <py:def function="content_class"><!----></py:def> + <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"/> - <script type="text/javascript" src="/scripts/ckanext_ga_reports.js"></script> + <link rel="stylesheet" type="text/css" href="/css/ga_report.css?1"/> + <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> <script type="text/javascript" src="/scripts/vendor/d3.v2.js"></script> <script type="text/javascript" src="/scripts/vendor/d3.layout.min.js"></script> <script type="text/javascript" src="/scripts/vendor/rickshaw.min.js"></script> @@ -34,11 +37,9 @@ <div py:match="content"> - <h1>Site Usage</h1> + <h1>Site Usage ${usage_nav('Datasets')}</h1> - ${usage_nav('Datasets')} - - + <div class="boxed"> <h3 py:if="c.publisher"><a href="${h.url_for(controller='ckanext.dgu.controllers.publisher:PublisherController',action='read',id=c.publisher.name)}">${c.publisher.title}</a></h3> <p py:if="not c.top_packages">No page views in this period</p> @@ -61,7 +62,7 @@ </div> </form> <py:if test="c.top_packages"> - <table class="table table-condensed table-bordered table-striped"> + <table class="ga-reports-table table table-condensed table-bordered table-striped"> <tr> <th>Dataset</th> <th>Views</th> @@ -72,13 +73,14 @@ <td> ${h.link_to(package.title or package.name, h.url_for(controller='package', action='read', id=package.name))} </td> - <td>${views}</td> - <td>${downloads}</td> + <td class="td-numeric">${views}</td> + <td class="td-numeric">${downloads}</td> </tr> </py:for> </table> </py:if> + </div> </div>