AdminAction( section='perms', id='roles', name=_("User Roles"), help=_("Manage User Roles"), icon='th-large', model=Role, actions=[ { 'id': 'list', 'name': _("Browse Roles"), 'help': _("Browse all existing roles"), 'link': 'admin_roles' }, { 'id': 'new', 'name': _("Add Role"), 'help': _("Create new role"), 'link': 'admin_roles_new' }, ], link='admin_roles', urlpatterns=patterns( 'misago.apps.admin.roles.views', url(r'^$', 'List', name='admin_roles'), url(r'^new/$', 'New', name='admin_roles_new'), url(r'^forums/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Forums', name='admin_roles_masks'), url(r'^acl/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'ACL', name='admin_roles_acl'), url(r'^edit/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Edit', name='admin_roles_edit'), url(r'^delete/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Delete', name='admin_roles_delete'), ), ),
AdminAction( section='forums', id='forums', name=_("Forums List"), help=_("Create, edit and delete forums."), icon='comment', model=Forum, actions=[ { 'id': 'list', 'name': _("Forums List"), 'help': _("All existing forums"), 'link': 'admin_forums' }, { 'id': 'new', 'name': _("New Node"), 'help': _("Create new forums tree node"), 'link': 'admin_forums_new' }, ], link='admin_forums', urlpatterns=patterns( 'misago.apps.admin.forums.views', url(r'^$', 'List', name='admin_forums'), url(r'^sync/$', 'resync_forums', name='admin_forums_resync'), url(r'^sync/(?P<forum>\d+)/(?P<progress>\d+)/$', 'resync_forums', name='admin_forums_resync'), url(r'^new/$', 'NewNode', name='admin_forums_new'), url(r'^up/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Up', name='admin_forums_up'), url(r'^down/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Down', name='admin_forums_down'), url(r'^edit/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Edit', name='admin_forums_edit'), url(r'^delete/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Delete', name='admin_forums_delete'), ), ),
AdminAction( section='users', id='users', name=_("Users List"), help=_("Search and browse users"), icon='user', model=User, actions=[ { 'id': 'list', 'name': _("Browse Users"), 'help': _("Browse all registered user accounts"), 'route': 'admin_users' }, { 'id': 'new', 'name': _("Add User"), 'help': _("Create new user account"), 'route': 'admin_users_new' }, ], route='admin_users', urlpatterns=patterns( 'misago.apps.admin.users.views', url(r'^$', 'List', name='admin_users'), url(r'^(?P<page>[1-9]([0-9]+)?)/$', 'List', name='admin_users'), url(r'^inactive/$', 'inactive', name='admin_users_inactive'), url(r'^new/$', 'New', name='admin_users_new'), url(r'^edit/(?P<slug>[a-z0-9]+)-(?P<target>\d+)/$', 'Edit', name='admin_users_edit'), url(r'^delete/(?P<slug>[a-z0-9]+)-(?P<target>\d+)/$', 'Delete', name='admin_users_delete'), ), ),
from django.conf.urls import patterns, include, url from django.utils.translation import ugettext_lazy as _ from misago.admin import AdminAction ADMIN_ACTIONS = (AdminAction( section='system', id='settings', name=_("Settings"), help=_("Change your forum configuration"), icon='wrench', route='admin_settings', urlpatterns=patterns( 'misago.apps.admin.settings.views', url(r'^$', 'settings', name='admin_settings'), url(r'^search/$', 'settings_search', name='admin_settings_search'), url(r'^(?P<group_slug>([a-z0-9]|-)+)-(?P<group_id>\d+)/$', 'settings', name='admin_settings')), ), )
from django.conf.urls import patterns, include, url from django.utils.translation import ugettext_lazy as _ from misago.admin import AdminSection, AdminAction ADMIN_SECTIONS = (AdminSection( id='permissions', name=_("Permissions"), icon='adjust', after='forums', ), ) ADMIN_ACTIONS = (AdminAction( section='permissions', id='permissions', name=_("Permissions"), help=_("trolololo permissions"), icon='adjust', route='admin_permissions', urlpatterns=patterns( 'misago.admin.views', url(r'^$', 'todo', name='admin_permissions'), ), ), )
from django.conf.urls import patterns, include, url from django.utils.translation import ugettext_lazy as _ from misago.admin import AdminAction from misago.models import Session, User ADMIN_ACTIONS = ( AdminAction( section='overview', id='index', name=_("Home"), help=_("Your forums right now"), icon='home', link='admin_home', urlpatterns=patterns( 'misago.apps.admin.index', url(r'^$', 'index', name='admin_home'), ), ), AdminAction( section='overview', id='stats', name=_("Stats"), help=_("Create Statistics Reports"), icon='signal', link='admin_stats', urlpatterns=patterns( 'misago.apps.admin.stats.views', url(r'^$', 'form', name='admin_stats'), url(r'^(?P<model>[a-z0-9]+)/(?P<date_start>[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])/(?P<date_end>[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])/(?P<precision>\w+)$', 'graph', name='admin_stats_graph'),
from misago.admin import AdminSection, AdminAction ADMIN_SECTIONS = (AdminSection( id='forums', name=_("Forums"), icon='comment', after='users', ), ) ADMIN_ACTIONS = ( AdminAction( section='forums', id='forums', name=_("Forums List"), help=_("Create, edit and delete forums."), icon='comment', route='admin_forums', urlpatterns=patterns( 'misago.admin.views', url(r'^$', 'todo', name='admin_forums'), ), ), AdminAction( section='forums', id='attachments', name=_("Attachments"), help=_("Manage allowed attachment types."), icon='download-alt', route='admin_forums_attachments', urlpatterns=patterns( 'misago.admin.views', url(r'^$', 'todo', name='admin_forums_attachments'),
AdminAction( section='users', id='users', name=_("Users List"), help=_("Search and browse users"), icon='user', model=User, actions=[ { 'id': 'list', 'icon': 'list-alt', 'name': _("Browse Users"), 'help': _("Browse all registered user accounts"), 'route': 'admin_users' }, { 'id': 'new', 'icon': 'plus', 'name': _("Add User"), 'help': _("Create new user account"), 'route': 'admin_users_new' }, ], route='admin_users', urlpatterns=patterns( 'misago.users.admin.users.views', url(r'^$', 'List', name='admin_users'), url(r'^inactive/$', 'inactive', name='admin_users_inactive'), url(r'^new/$', 'List', name='admin_users_new'), url(r'^edit/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Edit', name='admin_users_edit'), url(r'^delete/(?P<slug>([a-z0-9]|-)+)-(?P<target>\d+)/$', 'Delete', name='admin_users_delete'), ), ),