From: Patrick Samson Date: Mon, 16 Apr 2012 21:16:02 +0000 (+0200) Subject: ajustements for django 1.4 - the test suite doesn't work yet with USE_TZ, and has... X-Git-Tag: 1.2.0 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e0421eaf43fd5e3024121deef8fe039495eeb3c0;p=django-postman.git ajustements for django 1.4 - the test suite doesn't work yet with USE_TZ, and has now 3 fails if LANGUAGE_CODE is not 'en' --- diff --git a/postman/templates/postman/base.html b/postman/templates/postman/base.html index e1d80bd..061cf3d 100644 --- a/postman/templates/postman/base.html +++ b/postman/templates/postman/base.html @@ -1,12 +1,13 @@ {% extends "base.html" %} +{% load url from future %} {% load i18n %}{% load postman_tags %} {% block title %}{% trans "Messaging" %}{% endblock %} {% block postman_menu %} {% endblock %} \ No newline at end of file diff --git a/postman/templates/postman/base_folder.html b/postman/templates/postman/base_folder.html index 7ca4e11..10a2da4 100644 --- a/postman/templates/postman/base_folder.html +++ b/postman/templates/postman/base_folder.html @@ -1,4 +1,5 @@ {% extends "postman/base.html" %} +{% load url from future %} {% load i18n postman_tags %}{% load pagination_tags %} {% block content %}
@@ -14,9 +15,9 @@
{% endblock pm_by_modes %}
{% csrf_token %} {% block pm_form_buttons %} -{% block pm_delete_button %}{% endblock %} -{% block pm_archive_button %}{% endblock %} -{% block pm_undelete_button %}{% endblock %} +{% block pm_delete_button %}{% endblock %} +{% block pm_archive_button %}{% endblock %} +{% block pm_undelete_button %}{% endblock %} {% endblock %} @@ -35,7 +36,7 @@ {% block pm_recipient_cell %} {% endblock %}
{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% if message.is_replied %}{% endif %} {% block pm_subject %} - + {% include "postman/inc_subject_ex.html" %} {% endblock %} diff --git a/postman/templates/postman/base_write.html b/postman/templates/postman/base_write.html index d454e9e..e188e48 100644 --- a/postman/templates/postman/base_write.html +++ b/postman/templates/postman/base_write.html @@ -3,7 +3,8 @@ {% block extrahead %}{{ block.super }} {% if is_autocompleted %} {# using the available admin jQuery is enough #} - +{# dj v1.4 #}{% load static %} +{# dj v1.3 #}{# #} {# #} diff --git a/postman/templates/postman/view.html b/postman/templates/postman/view.html index 5436208..c1edef4 100644 --- a/postman/templates/postman/view.html +++ b/postman/templates/postman/view.html @@ -1,4 +1,5 @@ {% extends "postman/base.html" %} +{% load url from future %} {% load i18n %}{% load postman_tags %} {% block content %}
@@ -19,14 +20,14 @@ {% trans "Back" %} - -{% if not archived %}{% endif %} + +{% if not archived %}{% endif %} -{% if reply_to_pk %}{% trans "Reply" %}{% endif %} +{% if reply_to_pk %}{% trans "Reply" %}{% endif %} {% if reply_to_pk %}

{% trans 'Reply' %}

-
{% csrf_token %} +{% csrf_token %}
{{ form.body }}
{% endif %}