## -*- coding: utf-8 -*-
<%!
from pylons.i18n.translation import set_lang, get_lang
from baruwa.lib.filters import totals
%>
.:. Baruwa :: ${next.title()}
${h.javascript_link(h.media_url() + 'js/jquery.min.js',
h.media_url() + 'js/jquery.mustache.min.js',
url('jsi18n'),
h.media_url() + 'js/baruwa/common.js')}
${next.headers()}\
% if c.user:
-
${h.link_to(_('Messages'), url(controller='messages'))}
- ${h.link_to(_('Full message list'), url(controller='messages', action='listing'))}
- ${h.link_to(_('Quarantine'), url(controller='messages', action='quarantine'))}
- ${h.link_to(_('Archive'), url(controller='messages', action='archive'))}
-
${h.link_to(_('Lists'), url(controller='lists'))}
- ${h.link_to(_('Approved senders'), url('lists-index', list_type=1))}
- ${h.link_to(_('Banned senders'), url('lists-index', list_type=2))}
- ${h.link_to(_('Add to List'), url('lists-add'), id='list-add')}
- ${h.link_to(_('Reports'), url(controller='reports'))}
% if c.user.is_admin:
-
${h.link_to(_('Status'), url(controller='status'))}
-
${h.link_to(_('Domains'), url(controller='domains'))}
% if c.user.is_superadmin:
- ${h.link_to(_('Add a domain'), url(controller='domains', action='add'))}
% endif
-
${h.link_to(_('Accounts'), url(controller='accounts'))}
- ${h.link_to(_('Add account'), url(controller='accounts', action='add'), id="user-add")}
% if c.user.is_superadmin:
-
${h.link_to(_('Settings'), url(controller='settings'))}
- ${h.link_to(_('Add scanning node'), url('settings-addserver'))}
- ${h.link_to(_('MailScanner settings'), url(controller='settings', action='section'))}
-
${h.link_to(_('Organizations'), url(controller='organizations'))}
- ${h.link_to(_('Add organization'), url('orgs-add'))}
% endif
% else:
- ${_("Account")}
% endif
% endif
${self.heading()}
Loading...
<%include file="/includes/flash.html"/>
${next.body()}
${self.localscripts()}
<%def name="tab_class(name)">\
Baruwa ::
%def>