From: Radek Czajka Date: Fri, 18 Feb 2011 13:01:56 +0000 (+0100) Subject: some events for google analytics X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/17451e915e915e884b18cbab47aff6c9902bc6ae?ds=inline some events for google analytics --- 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" %}