--- a/ckanext/ga_report/templates/ga_report/publisher/index.html +++ b/ckanext/ga_report/templates/ga_report/publisher/index.html @@ -8,16 +8,19 @@ <py:match path="primarysidebar"> <li class="widget-container boxed widget_text"> <h4>Publishers</h4> + <p>The table shows the top 20 publishers as recorded by page views of datasets owned by that publisher, and the number of visits to each publisher's home page.</p> </li> </py:match> <div py:match="content"> <h1>Publisher Analytics</h1> - <h2>The top 20 publishers</h2> + <h2>The top 20 publishers of ${c.month_desc}</h2> <form class="form-inline" action="${h.url_for(controller='ckanext.ga_report.controller:GaPublisherReport',action='index')}" method="get"> <div class="controls"> <select name="month"> + <option value='' py:attrs="{'selected': 'selected' if not c.month else None}">All time</option> + <py:for each="val,desc in c.months"> <option value='${val}' py:attrs="{'selected': 'selected' if c.month == val else None}">${desc}</option> </py:for>