From 6a42acaa114548e052f5cd9c5835b4c2354d5e9d Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Tue, 30 Jul 2013 14:07:05 +0200 Subject: Update url function in templates to django 1.5 --- papillon/templates/base.html | 2 +- papillon/templates/category.html | 2 +- papillon/templates/edit.html | 6 +++--- papillon/templates/editChoicesAdmin.html | 2 +- papillon/templates/editChoicesUser.html | 2 +- papillon/templates/main.html | 6 +++--- papillon/templates/vote.html | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'papillon/templates') diff --git a/papillon/templates/base.html b/papillon/templates/base.html index df72339..5bbf64a 100644 --- a/papillon/templates/base.html +++ b/papillon/templates/base.html @@ -13,7 +13,7 @@ {% for language in languages%}{{language.1}}{% endfor %}
-

Papillon

+

Papillon

{% block content %}{% endblock %} diff --git a/papillon/templates/category.html b/papillon/templates/category.html index f38743a..518b6df 100644 --- a/papillon/templates/category.html +++ b/papillon/templates/category.html @@ -8,7 +8,7 @@ {% if polls %}

{%trans "Polls"%}

{%endif%} {% for poll in polls %}
-

{{poll.name}}

+

{{poll.name}}

{{poll.description|safe}}

{% endfor %} diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 2f77a7e..9e470c6 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -16,7 +16,7 @@ -{{ base_url }} +{{ base_url }}

{% trans "Copy this address and send it to voters who want to participate to this poll" %} @@ -25,7 +25,7 @@ -{{ edit_url }} +{{ edit_url }}

{% trans "Address to modify the current poll" %} @@ -34,7 +34,7 @@ -{{choices_url }} +{{choices_url }}

{% trans "Address to modify choices of the current poll." %} diff --git a/papillon/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html index 6510dcc..fdecdf0 100644 --- a/papillon/templates/editChoicesAdmin.html +++ b/papillon/templates/editChoicesAdmin.html @@ -14,7 +14,7 @@ {% blocktrans %}As long as no options were added to the poll, it will not be available.{% endblocktrans %}

{% else %}

{% trans "Complete/Finalise the poll" %}

-

+

{% endif %} {% include 'editChoices.html' %} {% if choices %} diff --git a/papillon/templates/editChoicesUser.html b/papillon/templates/editChoicesUser.html index 47d6a52..de06211 100644 --- a/papillon/templates/editChoicesUser.html +++ b/papillon/templates/editChoicesUser.html @@ -10,7 +10,7 @@ {% endblock %} {% block content %} -

{%trans "Return to the poll"%}

+

{%trans "Return to the poll"%}

{% trans "Choices" %}

{% if choices %} diff --git a/papillon/templates/main.html b/papillon/templates/main.html index 696ab47..d946c73 100644 --- a/papillon/templates/main.html +++ b/papillon/templates/main.html @@ -3,21 +3,21 @@ {% block content %} {% if error %}

{{error}}

{%endif%} -

{%trans "Create a poll"%}

+

{%trans "Create a poll"%}

{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %} {% trans "It's here!" %}

{% if public %} {% if polls %}

{%trans "Public polls"%}

{%endif%} {% for poll in polls %}
-

{{poll.name}}

+

{{poll.name}}

{{poll.description|safe}}

{% endfor %} {% if categories %}

{%trans "Categories"%}

{% endif %} {% for category in categories %} -

{{category.name}}

+

{{category.name}}

{% endfor %} {% endif %} {% endblock %} diff --git a/papillon/templates/vote.html b/papillon/templates/vote.html index 5c20e5c..5d88af2 100644 --- a/papillon/templates/vote.html +++ b/papillon/templates/vote.html @@ -119,7 +119,7 @@
{%if poll.opened_admin%} -

{%trans "Add a new choice to this poll?"%}

{%endif%} +

{%trans "Add a new choice to this poll?"%}

{%endif%}
{%if hide_vote%}

{% trans "You have already vote? You are enough wise not to be influenced by other votes? You can display result by clicking" %} {% trans "here" %}.

{%else%}

{% trans "Remain informed of poll evolution:" %} {%trans "syndication"%}

{%endif%} -- cgit v1.2.3 From b0cc7979d1f07b311ed0de7cba3a3f9196833227 Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Tue, 30 Jul 2013 18:09:46 +0200 Subject: Fix url template use for last calls. --- papillon/templates/edit.html | 2 +- papillon/templates/editChoicesAdmin.html | 2 +- papillon/templates/vote.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'papillon/templates') diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 9e470c6..3bfb856 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -3,7 +3,7 @@ {% load i18n %} {% block fullscript %} - + {{ form.media }} diff --git a/papillon/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html index fdecdf0..41663ed 100644 --- a/papillon/templates/editChoicesAdmin.html +++ b/papillon/templates/editChoicesAdmin.html @@ -3,7 +3,7 @@ {% load i18n %} {% block fullscript %} - + {{ form_new_choice.media }} diff --git a/papillon/templates/vote.html b/papillon/templates/vote.html index 5d88af2..d316646 100644 --- a/papillon/templates/vote.html +++ b/papillon/templates/vote.html @@ -3,7 +3,7 @@ {% load get_range %} {% block fullscript %} - + {{ form_comment.media }} -- cgit v1.2.3 From 18b57522b7dcfe210b627bbc665c000cba53b1ae Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Tue, 30 Jul 2013 18:43:12 +0200 Subject: Use simple quotes instead of double quotes for url template function --- papillon/templates/base.html | 2 +- papillon/templates/category.html | 2 +- papillon/templates/edit.html | 8 ++++---- papillon/templates/editChoicesAdmin.html | 4 ++-- papillon/templates/editChoicesUser.html | 2 +- papillon/templates/main.html | 6 +++--- papillon/templates/vote.html | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) (limited to 'papillon/templates') diff --git a/papillon/templates/base.html b/papillon/templates/base.html index 5bbf64a..16c9f14 100644 --- a/papillon/templates/base.html +++ b/papillon/templates/base.html @@ -13,7 +13,7 @@ {% for language in languages%}{{language.1}}{% endfor %}
{% block content %}{% endblock %} diff --git a/papillon/templates/category.html b/papillon/templates/category.html index 518b6df..8df695c 100644 --- a/papillon/templates/category.html +++ b/papillon/templates/category.html @@ -8,7 +8,7 @@ {% if polls %}

{%trans "Polls"%}

{%endif%} {% for poll in polls %}
-

{{poll.name}}

+

{{poll.name}}

{{poll.description|safe}}

{% endfor %} diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 3bfb856..647700d 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -3,7 +3,7 @@ {% load i18n %} {% block fullscript %} - + {{ form.media }} @@ -16,7 +16,7 @@
-{{ base_url }} +{{ base_url }}

{% trans "Copy this address and send it to voters who want to participate to this poll" %} @@ -25,7 +25,7 @@

-{{ edit_url }} +{{ edit_url }}

{% trans "Address to modify the current poll" %} @@ -34,7 +34,7 @@

-{{choices_url }} +{{choices_url }}

{% trans "Address to modify choices of the current poll." %} diff --git a/papillon/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html index 41663ed..d296a16 100644 --- a/papillon/templates/editChoicesAdmin.html +++ b/papillon/templates/editChoicesAdmin.html @@ -3,7 +3,7 @@ {% load i18n %} {% block fullscript %} - + {{ form_new_choice.media }} @@ -14,7 +14,7 @@ {% blocktrans %}As long as no options were added to the poll, it will not be available.{% endblocktrans %}

{% else %}

{% trans "Complete/Finalise the poll" %}

-

+

{% endif %} {% include 'editChoices.html' %} {% if choices %} diff --git a/papillon/templates/editChoicesUser.html b/papillon/templates/editChoicesUser.html index de06211..cff888c 100644 --- a/papillon/templates/editChoicesUser.html +++ b/papillon/templates/editChoicesUser.html @@ -10,7 +10,7 @@ {% endblock %} {% block content %} -

{%trans "Return to the poll"%}

+

{%trans "Return to the poll"%}

{% trans "Choices" %}

{% if choices %} diff --git a/papillon/templates/main.html b/papillon/templates/main.html index d946c73..9a3adfb 100644 --- a/papillon/templates/main.html +++ b/papillon/templates/main.html @@ -3,21 +3,21 @@ {% block content %} {% if error %}

{{error}}

{%endif%} -

{%trans "Create a poll"%}

+

{%trans "Create a poll"%}

{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %} {% trans "It's here!" %}

{% if public %} {% if polls %}

{%trans "Public polls"%}

{%endif%} {% for poll in polls %}
-

{{poll.name}}

+

{{poll.name}}

{{poll.description|safe}}

{% endfor %} {% if categories %}

{%trans "Categories"%}

{% endif %} {% for category in categories %} -

{{category.name}}

+

{{category.name}}

{% endfor %} {% endif %} {% endblock %} diff --git a/papillon/templates/vote.html b/papillon/templates/vote.html index d316646..204f553 100644 --- a/papillon/templates/vote.html +++ b/papillon/templates/vote.html @@ -3,7 +3,7 @@ {% load get_range %} {% block fullscript %} - + {{ form_comment.media }} @@ -119,7 +119,7 @@
{%if poll.opened_admin%} -

{%trans "Add a new choice to this poll?"%}

{%endif%} +

{%trans "Add a new choice to this poll?"%}

{%endif%}
{%if hide_vote%}

{% trans "You have already vote? You are enough wise not to be influenced by other votes? You can display result by clicking" %} {% trans "here" %}.

{%else%}

{% trans "Remain informed of poll evolution:" %} {%trans "syndication"%}

{%endif%} -- cgit v1.2.3 From dbf0a5632319733d8fbdbdff2fb85f5026a02c7a Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Fri, 9 Aug 2013 00:37:31 +0200 Subject: Fix bug with newest django 1.5 url function (forgott before) --- papillon/templates/editChoicesUser.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'papillon/templates') diff --git a/papillon/templates/editChoicesUser.html b/papillon/templates/editChoicesUser.html index cff888c..174c02f 100644 --- a/papillon/templates/editChoicesUser.html +++ b/papillon/templates/editChoicesUser.html @@ -3,7 +3,7 @@ {% load i18n %} {% block fullscript %} - + {{ form_new_choice.media }} -- cgit v1.2.3