mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* Some fixes about *unseen messages* counters (see #204)
* Disable mailbox actions for RO mailboxes (fixes #239)
This commit is contained in:
@@ -35,6 +35,9 @@ def join(items, sep=','):
|
||||
res += "%s : '%s'" % (k, v)
|
||||
return res
|
||||
|
||||
@register.simple_tag
|
||||
def tolist(values):
|
||||
return "[%s]" % ",".join(map(lambda v: '"%s"' % v, values))
|
||||
|
||||
@register.simple_tag
|
||||
def display_messages(msgs):
|
||||
@@ -134,7 +137,7 @@ def alert(msg, typ):
|
||||
|
||||
@register.simple_tag
|
||||
def render_link(linkdef, mdclass=None):
|
||||
t = Template("""<a href="{{ link.url }}" name="{{ link.name }}"
|
||||
t = Template("""<a href="{{ link.url }}" name="{{ link.name }}" title="{{ link.title }}"
|
||||
{% if link.modal %}data-toggle="ajaxmodal{% if link.autowidth %}-autowidth{% endif %}"{% endif %}
|
||||
{% if link.modalcb %}modalcb="{{ link.modalcb }}"{% endif %}
|
||||
class="{{ mdclass }}{% if link.class %} {{ link.class }}{% endif %}"
|
||||
|
||||
Reference in New Issue
Block a user