Skip to content

Commit 30aa2eb

Browse files
committed
Add Admin description in the dashboard header #253
Signed-off-by: tdruez <[email protected]>
1 parent d13a1af commit 30aa2eb

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

dje/dashboard.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515

1616

1717
class DejaCodeDashboard(Dashboard):
18+
short_description = (
19+
"The Administration section of DejaCode is intended primarily for application "
20+
"administrators (superusers) to maintain the data that supports organization "
21+
"policies and to configure the experience of the general user.\n"
22+
"Most of the routine activities regarding products, packages, components, "
23+
"licenses and owners can be performed in the User View section of DejaCode."
24+
)
25+
1826
def init_with_context(self, context):
1927
user = context["request"].user
2028
dataspace = user.dataspace
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% load i18n grp_dashboard_tags %}
2+
3+
{{ dashboard.media }}
4+
5+
{# DJE CUSTOM #}
6+
{% if dashboard.short_description %}
7+
<div id="short_description" class="g-d-c" style="margin-bottom:10px;">
8+
<p style="padding-right:10px;">
9+
{{ dashboard.short_description|linebreaksbr }}
10+
</p>
11+
</div>
12+
{% endif %}
13+
{# /DJE CUSTOM #}
14+
15+
<div class="g-d-c">
16+
<div class="g-d-12 g-d-f" id="column_1">
17+
{% for module in dashboard.children %}
18+
{% if module.column == 1 %}
19+
{% grp_render_dashboard_module module forloop.counter %}
20+
{% endif %}
21+
{% endfor %}
22+
</div>
23+
<div class="g-d-6" id="column_2">
24+
{% for module in dashboard.children %}
25+
{% if module.column == 2 %}
26+
{% grp_render_dashboard_module module forloop.counter %}
27+
{% endif %}
28+
{% endfor %}
29+
</div>
30+
<div class="g-d-6 g-d-l" id="column_3">
31+
{% for module in dashboard.children %}
32+
{% if module.column == 3 %}
33+
{% grp_render_dashboard_module module forloop.counter %}
34+
{% endif %}
35+
{% endfor %}
36+
</div>
37+
</div>

0 commit comments

Comments
 (0)