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_single.html
blob:a/ckanext/ga_report/templates/ga_report/ga_popular_single.html -> blob:b/ckanext/ga_report/templates/ga_report/ga_popular_single.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">
<h2>Featured dataset</h2> <h2>Featured dataset</h2>
   
<h3>${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}</h3> <div>${h.truncate(dataset.notes, length=200, whole_word=True)}</div> <div class="dataset-summary boxed">
<p></p> <a class="dataset-header" href="${h.url_for(controller='package', action='read', id=dataset.name)}">
  <h3>${dataset.title}</h3>
  </a>
  <h4>
  <strong>Publisher</strong> :
  <a href="/publisher/${publisher.name}">${publisher.title}</a>
  </h4>
  <div>${h.truncate(dataset.notes, length=200, whole_word=True)}</div>
  </div>
<div> <div>
<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">Other popular datasets</a>
<a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='index')}" class="btn btn-primary">All usage data</a> <a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='index')}" class="btn">All usage data</a>
</div> </div>
</div> </div>
   
   
</html> </html>