diff --git a/ckanext/googleanalytics/plugin.py b/ckanext/googleanalytics/plugin.py index a5f7d30..63e6506 100644 --- a/ckanext/googleanalytics/plugin.py +++ b/ckanext/googleanalytics/plugin.py @@ -70,6 +70,13 @@ class GoogleAnalyticsPlugin(SingletonPlugin): pos) yield mark, (kind, data, pos) + # and some styling + download_style = '''''' + # perform the stream transform stream = stream | Transformer( '//div[@id="package"]//td/a')\ @@ -78,6 +85,9 @@ class GoogleAnalyticsPlugin(SingletonPlugin): stream = stream | Transformer( '//div[@id="package"]//td/a')\ .apply(download_adder) + stream = stream | Transformer( + '//link[@rel="stylesheet"]')\ + .append(HTML(download_style)) return stream def after_map(self, map): diff --git a/ckanext/googleanalytics/templates/layout.html b/ckanext/googleanalytics/templates/layout.html deleted file mode 100644 index 71ef6de..0000000 --- a/ckanext/googleanalytics/templates/layout.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - ${select('.*')} - - - - -