Skip to content

Commit

Permalink
Django 1.9 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Apr 30, 2016
1 parent e71fcd2 commit c9109c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modoboa_webmail/templates/modoboa_webmail/attachments.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "common/generic_modal_form.html" %}{% load url from future %}
{% extends "common/generic_modal_form.html" %}
{% load i18n %}
{% load static %}
{% block modalbody %}
Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/templates/modoboa_webmail/compose.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n form_tags %}{% load url from future %}
{% load i18n form_tags %}

<form class="form-horizontal" method="POST" action="{{ posturl }}" id="composemail">
{% csrf_token %}
Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/templates/modoboa_webmail/headers.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "common/mailheaders.html" %}{% load i18n %}{% load url from future %}
{% extends "common/mailheaders.html" %}{% load i18n %}
{% block extraheaders %}{% if attachments %}
<div class="row">
<div class="header">{% trans "Attachments" %}</div>
Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/templates/modoboa_webmail/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "twocols.html" %}{% load i18n lib_tags webmail_tags %}{% load url from future %}
{% extends "twocols.html" %}{% load i18n lib_tags webmail_tags %}
{% load static %}
{% block pagetitle %}Webmail{% endblock %}
{% block extra_css %}
Expand Down
9 changes: 6 additions & 3 deletions modoboa_webmail/templatetags/webmail_tags.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# coding: utf-8
"""Custom template tags."""

from django import template
from django.conf import settings
from django.core.urlresolvers import reverse
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
from django.conf import settings

from modoboa.lib import parameters

Expand Down Expand Up @@ -173,7 +176,7 @@ def print_mailboxes(
mbox["sub"], selected, withunseen, selectonly, hdelimiter
) + "</ul>\n"
result += "</li>\n"
return result
return mark_safe(result)


@register.simple_tag
Expand Down

0 comments on commit c9109c0

Please sign in to comment.