--- a/ckanext/ga_report/templates/ga_report/ga_popular_single.html +++ b/ckanext/ga_report/templates/ga_report/ga_popular_single.html @@ -7,11 +7,19 @@ <div class="popular_datasets"> <h2>Featured dataset</h2> - <h3>${h.link_to(dataset.title, h.url_for(controller='package', action='read', id=dataset.name))}</h3> <div>${h.truncate(dataset.notes, length=200, whole_word=True)}</div> - <p></p> + <div class="dataset-summary boxed"> + <a class="dataset-header" href="${h.url_for(controller='package', action='read', id=dataset.name)}"> + <h3>${dataset.title}</h3> + </a> + <h4> + <strong>Publisher</strong> : + <a href="/publisher/${publisher.name}">${publisher.title}</a> + </h4> + <div>${h.truncate(dataset.notes, length=200, whole_word=True)}</div> + </div> <div> -<a href="${h.url_for(controller='ckanext.ga_report.controller:GaPublisherReport',action='index')}" class="btn btn-primary">More popular datasets</a> -<a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='index')}" class="btn btn-primary">All usage data</a> + <a href="${h.url_for(controller='ckanext.ga_report.controller:GaDatasetReport',action='read')}" class="btn">Other popular datasets</a> + <a href="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='index')}" class="btn">All usage data</a> </div> </div>