From 01fda221805016721c348bbb453be21430eaa2b9 Mon Sep 17 00:00:00 2001 From: tonio Date: Thu, 5 Aug 2010 17:17:50 +0200 Subject: [PATCH] fix: using MEDIA_URL inside templates. wip: #36, using tinyMCE (django-tinymce) to write messages in HTML. Currently, compose a new message is working pretty well. Answering or forwarding a message is still a mess... --- .../amavis_quarantine/templates/index.html | 2 +- .../templates/autoreply.html | 6 +-- extensions/stats/grapher.py | 2 - extensions/stats/templates/content.html | 4 +- extensions/stats/templates/graphs.html | 2 +- extensions/webmail/lib.py | 37 ++++++++++++++++++- extensions/webmail/main.py | 3 ++ extensions/webmail/templates/compose.html | 4 +- extensions/webmail/templates/index.html | 8 +++- extensions/webmail/views.py | 22 +++++++++-- lib/email_listing.py | 27 ++++++++++---- lib/events.py | 26 +++++++++++++ settings_sample.py | 3 +- templates/admin/addpermission.html | 2 +- templates/admin/aliases.html | 4 +- templates/admin/domain_header.html | 2 +- templates/admin/domains.html | 6 +-- templates/admin/editalias.html | 2 +- templates/admin/editdomain.html | 2 +- templates/admin/editmailbox.html | 2 +- templates/admin/mailboxes.html | 8 ++-- templates/admin/newalias.html | 2 +- templates/admin/newdomain.html | 2 +- templates/admin/newmailbox.html | 2 +- templates/admin/permissions.html | 4 +- templates/admin/settings_header.html | 2 +- templates/common/email_listing.html | 5 ++- templates/common/email_searchbar.html | 2 +- templates/common/navbar.html | 8 ++-- templates/common/tinymce_textareas.js | 15 ++++++++ templates/common/viewmail.html | 2 +- templates/layout_simple.html | 12 +++--- templates/nlayout.html | 20 +++++----- templates/registration/login.html | 12 +++--- templates/userprefs/chpassword.html | 2 +- templates/userprefs/confirm.html | 2 +- templates/userprefs/preferences.html | 2 +- urls.py | 1 + 38 files changed, 191 insertions(+), 78 deletions(-) create mode 100644 templates/common/tinymce_textareas.js diff --git a/extensions/amavis_quarantine/templates/index.html b/extensions/amavis_quarantine/templates/index.html index 7ee48fc21..d401cec12 100644 --- a/extensions/amavis_quarantine/templates/index.html +++ b/extensions/amavis_quarantine/templates/index.html @@ -1,7 +1,7 @@ {% extends "common/email_listing.html" %} {% load i18n %} {% block css %} - + {% endblock %} {% block js %} mysubmit = function(event, name) { diff --git a/extensions/postfix_autoreply/templates/autoreply.html b/extensions/postfix_autoreply/templates/autoreply.html index 2293038f0..edfbd2fab 100644 --- a/extensions/postfix_autoreply/templates/autoreply.html +++ b/extensions/postfix_autoreply/templates/autoreply.html @@ -1,10 +1,10 @@ {% extends "layout_simple.html" %} {% load i18n %} {% block html_head %} - + - + href="{{ MEDIA_URL }}css/calendar.css" /> +