From 17451e915e915e884b18cbab47aff6c9902bc6ae Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 18 Feb 2011 14:01:56 +0100 Subject: [PATCH] some events for google analytics --- apps/catalogue/templatetags/catalogue_tags.py | 2 +- .../templates/catalogue/folded_tag_list.html | 4 ++-- wolnelektury/templates/catalogue/main_page.html | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/catalogue/templatetags/catalogue_tags.py b/apps/catalogue/templatetags/catalogue_tags.py index ac783c0ed..5cfa5fc0c 100644 --- a/apps/catalogue/templatetags/catalogue_tags.py +++ b/apps/catalogue/templatetags/catalogue_tags.py @@ -260,7 +260,7 @@ def tag_list(tags, choices=None): @register.inclusion_tag('catalogue/folded_tag_list.html') -def folded_tag_list(tags, choices=None): +def folded_tag_list(tags, title='', choices=None): tags = [tag for tag in tags if tag.count] if choices is None: choices = [] diff --git a/wolnelektury/templates/catalogue/folded_tag_list.html b/wolnelektury/templates/catalogue/folded_tag_list.html index a6ff53abd..960a71717 100644 --- a/wolnelektury/templates/catalogue/folded_tag_list.html +++ b/wolnelektury/templates/catalogue/folded_tag_list.html @@ -10,7 +10,7 @@ {% endfor %} {% if some_tags_hidden %} -

{% trans "See more" %}

+

{% trans "See more" %}

{% endif %}
@@ -19,6 +19,6 @@
  • {{ tag }} ({{ tag.count }})
  • {% endfor %} -

    {% trans "Hide" %}

    +

    {% trans "Hide" %}

    {% endif %} diff --git a/wolnelektury/templates/catalogue/main_page.html b/wolnelektury/templates/catalogue/main_page.html index 5d77c8cd4..1cc920714 100644 --- a/wolnelektury/templates/catalogue/main_page.html +++ b/wolnelektury/templates/catalogue/main_page.html @@ -80,7 +80,7 @@ {% else %}

    {% trans "Create your own book set. You can share it with friends by sending them link to your shelf." %}

    -

    {% trans "You need to " %} {% trans "to manage your shelves." %}

    +

    {% trans "You need to " %} {% trans "to manage your shelves." %}

    {% endif %}

    {% trans "Hand-outs for teachers" %}

    @@ -92,25 +92,25 @@
    {% if categories.author %}

    {% trans "Authors" %}

    - {% folded_tag_list categories.author %} + {% folded_tag_list categories.author 'Authors' %} {% endif %} {% if categories.kind %}

    {% trans "Kinds" %}

    - {% folded_tag_list categories.kind %} + {% folded_tag_list categories.kind 'Kinds' %} {% endif %} {% if categories.genre %}

    {% trans "Genres" %}

    - {% folded_tag_list categories.genre %} + {% folded_tag_list categories.genre 'Genres' %} {% endif %} {% if categories.epoch %}

    {% trans "Epochs" %}

    - {% folded_tag_list categories.epoch %} + {% folded_tag_list categories.epoch 'Epochs' %} {% endif %}
    {% if fragment_tags %}

    {% trans "Themes and topics" %}

    - {% folded_tag_list fragment_tags %} + {% folded_tag_list fragment_tags 'Themes' %} {% endif %}

    {% trans "Themes groups" %}

    -- 2.20.1