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 / publisher / popular.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html xmlns:py="http://genshi.edgewall.org/"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  py:strip="">
  <py:if test="dataset_count == 0">
    <p>We do not currently have usage data for ${publisher.title}</p>
  </py:if>
 
  <py:if test="dataset_count > 0">
    <div class="popular_datasets">
        <ul>
            <py:for each="dataset,views,visits in datasets">
                <li>
                    ${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}
                </li>
            </py:for>
        </ul>
      <p class="">${h.link_to("More usage data for " + publisher.title, h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport',action='read_publisher',id=publisher.name))}</p>
     </div>
  </py:if>
</html>