Show top datasets cross-publisher. Drop-down for the publisher. Browser version numbers filtered on download, so you get this version in the CSV too - for privacy. single_popular_dataset now copes when not much data, and can return the figures so DGU can reskin it in its own repo. Notes about usage stats centralised to notes.html.
[ckanext-ga-report.git] / ckanext / ga_report / templates / ga_report / ga_popular_datasets.html
blob:a/ckanext/ga_report/templates/ga_report/ga_popular_datasets.html -> blob:b/ckanext/ga_report/templates/ga_report/ga_popular_datasets.html
<html xmlns:py="http://genshi.edgewall.org/" <html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n" xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip=""> py:strip="">
   
<div class="popular_datasets"> <div class="popular_datasets">
<div class="pull-right"> <div class="pull-right">
<a href="${h.url_for(controller='ckanext.ga_report.controller:GaPublisherReport',action='index')}" class="btn btn-primary">More popular datasets »</a> <a href="${h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport',action='read')}" class="btn btn-primary">More popular datasets »</a>
</div> </div>
<h2>Popular datasets</h2> <h2>Popular datasets</h2>
<h4>${publisher.title}</h4> <h4>${publisher.title}</h4>
<ul> <ul>
<py:for each="dataset, _, _ in datasets"> <py:for each="dataset, _, _ in datasets">
<li> <li>
<span>${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}</span> <span>${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}</span>
<div>${h.truncate(dataset.notes, length=80, whole_word=True)}</div> <div>${h.truncate(dataset.notes, length=80, whole_word=True)}</div>
</li> </li>
</py:for> </py:for>
</ul> </ul>
   
</div> </div>
   
</html> </html>