Changed to provide a lambda to check if the extension is installed
[ckanext-ga-report.git] / ckanext / ga_report / templates / ga_report / publisher / popular.html
blob:a/ckanext/ga_report/templates/ga_report/publisher/popular.html -> blob:b/ckanext/ga_report/templates/ga_report/publisher/popular.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="">
  <py:if test="dataset_count == 0">
  <p>We do not currently have analytics data for ${publisher.title}</p>
  </py:if>
   
<py:if test="dataset_count > 0"> <py:if test="dataset_count > 0">
<div class="popular_datasets"> <div class="popular_datasets">
<ul class="popular_dataset_list"> <ul class="popular_dataset_list">
<py:for each="dataset,views,visits in datasets"> <py:for each="dataset,views,visits in datasets">
<li> <li>
${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))} ${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}
</li> </li>
</py:for> </py:for>
</ul> </ul>
   
<p>${h.link_to("More analytics for " + publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaPublisherReport',action='read',id=publisher.name))}</p> <p>${h.link_to("More analytics for " + publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaPublisherReport',action='read',id=publisher.name))}</p>
</div> </div>
</py:if> </py:if>
</html> </html>