mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01:00
@@ -155,7 +155,7 @@ class EmailListing(object):
|
||||
def render(self, request, pageid=1, **kwargs):
|
||||
page = self.paginator.getpage(pageid)
|
||||
if not page:
|
||||
listing = _("This folder contains no message")
|
||||
listing = "<div class='alert alert-info'>%s</div>" % _("Empty mailbox")
|
||||
else:
|
||||
listing = self.fetch(request, page.id_start, page.id_stop)
|
||||
return dict(listing=listing, navbar=self.render_navbar(page, self.baseurl))
|
||||
|
||||
+4
-2
@@ -120,8 +120,10 @@ class Table(object):
|
||||
trcpt = 0
|
||||
for row in rows:
|
||||
nrow = {"id" : row[self.idkey], "cols" : [], "trcpt" : trcpt}
|
||||
if row.has_key("options"):
|
||||
nrow["options"] = row["options"]
|
||||
for name in ["style", "options"]:
|
||||
if row.has_key(name):
|
||||
nrow[name] = row[name]
|
||||
|
||||
for c in self.columns:
|
||||
newcol = {"name" : c.name}
|
||||
for key in ["width", "align", "cssclass"]:
|
||||
|
||||
Reference in New Issue
Block a user