Commit 59b99af4 authored by Elger Jonker's avatar Elger Jonker

Improving dashboard with apps + some custom links

parent 04f34e71
Pipeline #38224448 failed with stage
in 13 minutes and 48 seconds
......@@ -110,6 +110,7 @@ class CustomIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
print(dir(Dashboard))
columns = 2
def init_with_context(self, context):
......@@ -117,7 +118,34 @@ class CustomAppIndexDashboard(ResetUserWidgetConfiguration, Dashboard):
self.children.append(modules.RecentActions(
_('Recent Actions for %s' % context['app_label'].capitalize()),
40,
column=0,
order=1,
column=1,
order=0,
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