From 9cd72a2669676ff55fd6258483193a4117e697a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 5 Mar 2012 16:38:04 +0100 Subject: [PATCH] Properly use next here --- html/translate.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/translate.html b/html/translate.html index 8116bc351..677ed984d 100644 --- a/html/translate.html +++ b/html/translate.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load url from future %} {% load i18n %} {% load weblate %} @@ -86,7 +87,10 @@ {% if user.is_authenticated %} {% else %} -{% blocktrans %}Login for saving translations.{% endblocktrans %} +{% url 'django.contrib.auth.views.login' as login_url %} +{% with unit.translation.get_translate_url as translate_url %} +{% blocktrans %}Login for saving translations.{% endblocktrans %} +{% endwith %} {% endif %}