--- a/ckanext/ga_report/templates/ga_report/ga_util.html +++ b/ckanext/ga_report/templates/ga_report/ga_util.html @@ -12,6 +12,20 @@ <td><a href="/publisher/${group.name}">${title}</a></td> </tr> </py:for> + </table> + + +<table py:def="stat_table(items)" class="table table-condensed table-bordered table-striped"> + <tr> + <th>Name</th> + <th>% Views</th> + </tr> + <py:for each="name, value in items"> + <tr> + <td>${name}</td> + <td>${value}</td> + </tr> + </py:for> </table>