# HG changeset patch # User Simon Descarpentries # Date 1392314146 -3600 # Node ID 43700c10a1fc092a6bd7ff567d6312692ce22f61 # Parent 8ce80860c3fef57d3b81702a286e0004fe9d66a2# Parent d10b7459a6f1b6bf032933b00594c2ddcf7b0579 commit merge diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/bg/LC_MESSAGES/django.mo Binary file src/cm/locale/bg/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/bg/LC_MESSAGES/django.po --- a/src/cm/locale/bg/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/bg/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2209,3 +2209,8 @@ #, fuzzy msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "За да деактивирате тази категория за този текст, независимо от конфигурацията на работната област, въведете: " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "политика за поверителност" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/en/LC_MESSAGES/django.po --- a/src/cm/locale/en/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/en/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2078,3 +2078,8 @@ #: models.py:266 models.py:267 models.py:268 models.py:269 models.py:270 msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "" + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/es/LC_MESSAGES/django.mo Binary file src/cm/locale/es/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/es/LC_MESSAGES/django.po --- a/src/cm/locale/es/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/es/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2374,3 +2374,8 @@ #, fuzzy msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "Para desactivar esta categoría para este texto sea cual sea la configuración del espacio de trabajo, escriba: " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "Política de confidencialidad" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/fr/LC_MESSAGES/django.mo Binary file src/cm/locale/fr/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/fr/LC_MESSAGES/django.po --- a/src/cm/locale/fr/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/fr/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2299,3 +2299,8 @@ #: models.py:266 models.py:267 models.py:268 models.py:269 models.py:270 msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "Pour désactiver cette catégorie pour ce texte quelle que soit la configuration de l'espace de travail, entrez : " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "Vie privée" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/it/LC_MESSAGES/django.mo Binary file src/cm/locale/it/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/it/LC_MESSAGES/django.po --- a/src/cm/locale/it/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/it/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2327,3 +2327,8 @@ #, fuzzy msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "Per disabilitare questa categoria per questo testo qualunque sia la configurazione per l'area di lavoro, digitare: " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "Politica della privacy" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/no/LC_MESSAGES/django.mo Binary file src/cm/locale/no/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/no/LC_MESSAGES/django.po --- a/src/cm/locale/no/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/no/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2188,3 +2188,8 @@ #, fuzzy msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "For å deaktivere denne kategorien for denne teksten uansett konfigurasjon for arbeidsområdet, skriver du: " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "Personvern" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/pt_BR/LC_MESSAGES/django.mo Binary file src/cm/locale/pt_BR/LC_MESSAGES/django.mo has changed diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/locale/pt_BR/LC_MESSAGES/django.po --- a/src/cm/locale/pt_BR/LC_MESSAGES/django.po Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/locale/pt_BR/LC_MESSAGES/django.po Thu Feb 13 18:55:46 2014 +0100 @@ -2213,3 +2213,8 @@ #, fuzzy msgid "To disable this category for this text whatever the configuration for the workspace, enter: " msgstr "Para desativar esta categoria para este texto seja qual for a configuração do espaço de trabalho, digite: " + +#: /header.html:8 +#, fuzzy +msgid "Privacy policy" +msgstr "Política de privacidade" diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/media/css/base.css --- a/src/cm/media/css/base.css Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/media/css/base.css Thu Feb 13 18:55:46 2014 +0100 @@ -863,4 +863,20 @@ font: 16px "Droid Sans", Verdana, sans-serif; } +#hide-piwik-cookies-optout { + cursor: help; +} +#piwik-cookies-optout { + position: fixed; + left: 25%; + top: 3%; + width: 900px; + background-color: #ddd; + opacity:0.4; + filter:alpha(opacity=40); /* For IE8 and earlier */ +} + +#piwik-cookies-optout iframe { + display: none; +} diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/templates/site/layout/header.html --- a/src/cm/templates/site/layout/header.html Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/templates/site/layout/header.html Thu Feb 13 18:55:46 2014 +0100 @@ -4,6 +4,9 @@
+{% if not DISABLE_TRACKING %} + {% blocktrans %}Privacy policy{% endblocktrans %} ▼ · +{% endif %} {% if user.is_authenticated %}{{ user.username }} ·{% endif %} {% blocktrans %}Home{% endblocktrans %} {% if can_create_text %} diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/templates/site/tracking.html --- a/src/cm/templates/site/tracking.html Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/templates/site/tracking.html Thu Feb 13 18:55:46 2014 +0100 @@ -6,14 +6,38 @@ - + +$(document).ready(function() { + $('#hide-piwik-cookies-optout').click(function() { + $('#piwik-cookies-optout iframe').slideToggle("fast"); + }); +}); +--> + +
{% endif %} diff -r 8ce80860c3fe -r 43700c10a1fc src/cm/views/site.py --- a/src/cm/views/site.py Thu Feb 13 18:54:19 2014 +0100 +++ b/src/cm/views/site.py Thu Feb 13 18:55:46 2014 +0100 @@ -21,6 +21,7 @@ from django.views.generic.list_detail import object_list from django.contrib.auth.models import User from cm.models import Text, TextVersion, Attachment, Comment, Configuration, Activity +from django.core.cache import cache ACTIVITY_PAGINATION = 10 RECENT_TEXT_NB = 5 @@ -79,6 +80,7 @@ user = form.get_user() user.backend = 'django.contrib.auth.backends.ModelBackend' cm_login(request, user) + cache.clear() display_message(request, _(u"You're logged in!")) return HttpResponseRedirect(reverse('index')) else: