From 3b3c4e8ee8d6a2e8c62744528244fabbbb5551a9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 27 Oct 2013 20:15:38 +0100 Subject: Templates: Remove "submited" templatetags and manage it inside template. More appropriate message after submission. --- chimere/templates/chimere/blocks/submited.html | 19 ++++++++++++++++--- chimere/templates/chimere/edit.html | 4 ++-- chimere/templates/chimere/edit_route.html | 2 +- chimere/templatetags/chimere_tags.py | 8 -------- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/chimere/templates/chimere/blocks/submited.html b/chimere/templates/chimere/blocks/submited.html index 5e4e546..7692d79 100644 --- a/chimere/templates/chimere/blocks/submited.html +++ b/chimere/templates/chimere/blocks/submited.html @@ -1,6 +1,19 @@ {% load i18n %} +{% load url from future %}
-

{% trans "Your new proposition/modification has been submited. A moderator will treat your submission shortly. Thanks!" %}

+ {% if is_modification %} + {% if can_write %} +

{% trans "Your modification has been taken into account." %}

+ {% else %} +

{% trans "Your modification has been submited. A moderator will treat your submission shortly. Thanks!" %}

+ {% endif %} + {% else %} + {% if can_write %} +

{% trans "Your new proposition has been added." %}

+ {% else %} +

{% trans "Your new proposition has been submited. A moderator will treat your submission shortly. Thanks!" %}

+ {% endif %} + {% endif %}