[ui] Update summary page design and links

This commit is contained in:
amercader 2012-05-10 13:44:29 +01:00
parent 8f22a3a3a0
commit a8747809d2
1 changed files with 4 additions and 4 deletions

View File

@ -3,14 +3,14 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="page_title">Google analytics for CKAN</py:def>
<py:def function="page_title">Analytics for ${g.site_title}</py:def>
<div py:match="content">
<h2>Most viewed datasets</h2>
<p><em>Note: this data does not include API calls</em></p>
<table>
<table class="table table-condensed table-bordered table-striped">
<tr>
<th>Dataset</th>
<th>Unique views (last 14 days)</th>
@ -27,7 +27,7 @@
</table>
<h2>Most downloaded resources</h2>
<table>
<table class="table table-condensed table-bordered table-striped">
<tr>
<th>Resource</th>
<th>Unique views (last 14 days)</th>
@ -35,7 +35,7 @@
</tr>
<py:for each="resource, recent, ever in c.top_resources">
<tr>
<td>${h.link_to(resource.description or resource.format, resource.url)}<br />
<td>${h.link_to(h.truncate(resource.description, length=50,whole_word=True) if resource.description else resource.format, h.url_for(controller='package',action='resource_read',id=resource.resource_group.package.id,resource_id=resource.id))}<br />
<em>in ${h.link_to(resource.resource_group.package.title or resource.resource_group.package.name, h.url_for(controller='package', action='read', id=resource.resource_group.package.name))}</em>
</td>
<td>${recent}</td>