Example #1
0
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
        },
    )
Example #2
0
 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')])
Example #3
0
 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')
         ])
Example #4
0
 def tab_title_general(self):
     return _('label_general', default=u'General')
Example #5
0
 def tab_title_dossiers(self):
     return _('label_dossiers', default=u'Dossiers')
Example #6
0
 def tab_title_workspaces(self):
     return _('label_workspaces', default=u'Workspaces')
Example #7
0
 def tab_title_reminders(self):
     return _('label_reminders', default=u'Reminders')
Example #8
0
 def tab_title_dispositions(self):
     return _('label_dispositions', default=u'Dispositions')
Example #9
0
 def tab_title_forwardings(self):
     return _('label_forwardings', default=u'Forwardings')
Example #10
0
 def tab_title_proposals(self):
     return _('label_proposals', default=u'Proposals')
Example #11
0
 def tab_title_task(self):
     return _('label_tasks', default=u'Tasks')
Example #12
0
 def tab_title_task(self):
     return _('label_tasks', default=u'Tasks')
Example #13
0
 def tab_title_dossiers(self):
     return _('label_dossiers', default=u'Dossiers')
Example #14
0
 def tab_title_dispositions(self):
     return _('label_dispositions', default=u'Dispositions')
Example #15
0
 def tab_title_reminders(self):
     return _('label_reminders', default=u'Reminders')
Example #16
0
 def tab_title_proposals(self):
     return _('label_proposals', default=u'Proposals')
Example #17
0
 def tab_title_forwardings(self):
     return _('label_forwardings', default=u'Forwardings')