mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
@@ -177,7 +177,7 @@ class User(DUser):
|
||||
return constant_time_compare(val1, val2)
|
||||
|
||||
@property
|
||||
def metainfo(self):
|
||||
def tags(self):
|
||||
ret = '<span class="label">%s</span>' % _("account")
|
||||
ret += ' <span class="label label-info">%s</span>' % self.group
|
||||
return ret
|
||||
@@ -767,7 +767,7 @@ class Alias(DatesAware):
|
||||
return rcpts[0]
|
||||
|
||||
@property
|
||||
def metainfo(self):
|
||||
def tags(self):
|
||||
cpt = len(self.mboxes.all())
|
||||
if cpt:
|
||||
label = _("alias") if cpt == 1 else _("distribution list")
|
||||
|
||||
@@ -50,7 +50,7 @@ class ExtensionsTable(tables.Table):
|
||||
class IdentitiesTable(tables.Table):
|
||||
idkey = "id"
|
||||
styles = "table"
|
||||
metainfo = tables.Column("metainfo", label=ugettext_lazy("Tags"), safe=True)
|
||||
tags = tables.Column("tags", label=ugettext_lazy("Tags"), safe=True)
|
||||
identity = tables.LinkColumn(
|
||||
"identity", label=ugettext_lazy("Email/Username"),
|
||||
modal=True,
|
||||
@@ -62,7 +62,7 @@ class IdentitiesTable(tables.Table):
|
||||
actions = tables.ActionColumn("actions", label=ugettext_lazy("Actions"),
|
||||
defvalue=identity_actions)
|
||||
|
||||
cols_order = ["identity", "name_or_rcpt", "metainfo", "actions"]
|
||||
cols_order = ["identity", "name_or_rcpt", "tags", "actions"]
|
||||
|
||||
def __init__(self, request, identities):
|
||||
super(IdentitiesTable, self).__init__(request)
|
||||
|
||||
Reference in New Issue
Block a user