From e90530788c020e749e0c0359a3de97ba72dedd99 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Mon, 16 Apr 2012 23:16:02 +0200 Subject: [PATCH] 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' --- postman/templates/postman/base.html | 11 ++++++----- postman/templates/postman/base_folder.html | 9 +++++---- postman/templates/postman/base_write.html | 3 ++- postman/templates/postman/view.html | 9 +++++---- 4 files changed, 18 insertions(+), 14 deletions(-) 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 %} -- 2.39.5