From: Ross Jones Date: Wed, 06 Nov 2013 12:06:18 +0000 Subject: Show next to title the publisher on the /dataset page, or All datasets if no publisher X-Git-Url: http://maxious.lambdacomplex.org/git/?p=ckanext-ga-report.git&a=commitdiff&h=49aa4d1ed461bc7fb93bfa6824b880c2cd805fd8 --- Show next to title the publisher on the /dataset page, or All datasets if no publisher --- --- a/ckanext/ga_report/public/scripts/ckanext_ga_reports.js +++ b/ckanext/ga_report/public/scripts/ckanext_ga_reports.js @@ -97,7 +97,7 @@ * Show the correct rickshaw graph in the sidebar. * Not to be called before all graphs load. */ - $('a[data-toggle="hashtab"]').on( + $('a[data-toggle="tab"]').on( 'shown', function(e) { var href = $(e.target).attr('href'); @@ -115,7 +115,7 @@ } ); /* The first tab might already have been shown */ - $('li.active > a[data-toggle="hashtab"]').trigger('shown'); + $('li.active > a[data-toggle="tab"]').trigger('shown'); }; CKAN.GA_Reports.bind_month_selector = function() { --- a/ckanext/ga_report/templates/ga_report/publisher/read.html +++ b/ckanext/ga_report/templates/ga_report/publisher/read.html @@ -36,7 +36,10 @@   Download as CSV -

Site Usage

+

Site Usage + ${c.publisher.title} + All datasets +

@@ -49,8 +52,6 @@
- Datasets From ${c.publisher.title} - All Datasets ${rickshaw_graph(c.graph_data,'dataset-downloads',debug=True)} --- a/ckanext/ga_report/templates/ga_report/site/index.html +++ b/ckanext/ga_report/templates/ga_report/site/index.html @@ -58,33 +58,33 @@