Commit 2a90f5ea authored by Elger Jonker's avatar Elger Jonker

Improving dashboard with apps + some custom links


Former-commit-id: 59b99af4
parent 4c935fd3
...@@ -110,6 +110,7 @@ class CustomIndexDashboard(ResetUserWidgetConfiguration, Dashboard): ...@@ -110,6 +110,7 @@ class CustomIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard): class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
print(dir(Dashboard))
columns = 2 columns = 2
def init_with_context(self, context): def init_with_context(self, context):
...@@ -117,7 +118,34 @@ class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard): ...@@ -117,7 +118,34 @@ class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
self.children.append(modules.RecentActions( self.children.append(modules.RecentActions(
_('Recent Actions for %s' % context['app_label'].capitalize()), _('Recent Actions for %s' % context['app_label'].capitalize()),
40, 40,
column=0, column=1,
order=1, order=0,
include_list=[context['app_label'] + '.*'], include_list=[context['app_label'] + '.*'],
)) ))
if context['app_label'] == "game":
self.children.append(modules.LinkList(
_('Quick Actions'),
children=[
{
'title': _('Verify New Urls'),
'url': '/admin/game/urlsubmission/?has_been_accepted__exact=0&has_been_rejected__exact=0&o=-6.2.3',
'external': False,
},
{
'title': _('Verify New Organizations'),
'url': '/admin/game/organizationsubmission/?has_been_accepted__exact=0&has_been_rejected__exact=0&o=-5',
'external': False,
},
],
column=0,
order=0,
layout='stacked'
))
self.children.append(modules.AppList(
_('Applications'),
models=('%s.*' % context['app_label'],),
column=0,
order=1
))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment