class NotificationListingTab(BaseListingTab): implements(INotificationTableSourceConfig) sort_on = 'created' show_searchform = False columns = ( { 'column': 'kind', 'column_title': _(u'column_kind', default=u'Kind'), 'transform': lambda item, value: item.activity.label, 'sortable': False }, { 'column': 'title', 'column_title': _(u'column_title', default=u'Title'), 'transform': resolve_notification_link, 'sortable': False }, { 'column': 'actor_id', 'column_title': _(u'column_Actor', default=u'Actor'), 'transform': readable_actor, 'sortable': False }, { 'column': 'created', 'column_title': _(u'created', default=u'Created'), 'transform': readable_date }, )
def render_form_template(self): return prepare_handlebars_template( TEMPLATES_DIR.joinpath('settings-form.html'), translations=[ _('label_activity', default=u'Activity'), _('label_badge', default=u'Badge'), _('label_mail', default=u'Mail'), _('label_daily_digest', default=u'Daily Digest'), _('btn_save', default=u'Save'), _('btn_cancel', default=u'Cancel'), _('btn_reset', default=u'Reset')])
def render_form_template(self): return prepare_handlebars_template( TEMPLATES_DIR.joinpath('settings-form.html'), translations=[ _('label_activity', default=u'Activity'), _('label_badge', default=u'Badge'), _('label_mail', default=u'Mail'), _('label_daily_digest', default=u'Daily Digest'), _('btn_save', default=u'Save'), _('btn_cancel', default=u'Cancel'), _('btn_reset', default=u'Reset') ])
def tab_title_general(self): return _('label_general', default=u'General')
def tab_title_dossiers(self): return _('label_dossiers', default=u'Dossiers')
def tab_title_workspaces(self): return _('label_workspaces', default=u'Workspaces')
def tab_title_reminders(self): return _('label_reminders', default=u'Reminders')
def tab_title_dispositions(self): return _('label_dispositions', default=u'Dispositions')
def tab_title_forwardings(self): return _('label_forwardings', default=u'Forwardings')
def tab_title_proposals(self): return _('label_proposals', default=u'Proposals')
def tab_title_task(self): return _('label_tasks', default=u'Tasks')
def tab_title_task(self): return _('label_tasks', default=u'Tasks')
def tab_title_dossiers(self): return _('label_dossiers', default=u'Dossiers')
def tab_title_dispositions(self): return _('label_dispositions', default=u'Dispositions')
def tab_title_reminders(self): return _('label_reminders', default=u'Reminders')
def tab_title_proposals(self): return _('label_proposals', default=u'Proposals')
def tab_title_forwardings(self): return _('label_forwardings', default=u'Forwardings')