|
1 | | -{% extends '@RoadizRozier/layout.html.twig' %} |
| 1 | +{% extends "@RoadizRozier/admin/base.html.twig" %} |
2 | 2 |
|
3 | 3 | {% if app.user %} |
4 | 4 | {% set displayName = app.user.firstName|default(app.user.nickname|default(app.user.givenName|default(app.user.name|default(app.user.userIdentifier)))) %} |
|
8 | 8 |
|
9 | 9 | {% block title %}{% trans %}dashboard{% endtrans %} | {{ parent() }}{% endblock %} |
10 | 10 |
|
11 | | -{% block content %} |
12 | | -<section class="content-global"> |
13 | | - <header class="content-header dashboard-header"> |
14 | | - <h1 class="content-title dashboard-title">{{ "hello.%name%"|trans({'%name%': displayName}) }}</h1> |
15 | | - {% include '@RoadizRozier/dashboard/navBar.html.twig' with {'current':'dashboard'} %} |
16 | | - </header> |
| 11 | +{%- block content_title -%}{{ "hello.%name%"|trans({'%name%': displayName}) }}{%- endblock -%} |
17 | 12 |
|
18 | | - <article class="content content-dashboard"> |
| 13 | +{%- block content_header_nav -%} |
| 14 | + {%- include '@RoadizRozier/dashboard/navBar.html.twig' with {'current':'dashboard'} -%} |
| 15 | +{%- endblock -%} |
| 16 | + |
| 17 | +{%- block content_body -%} |
| 18 | +<article class="content"> |
| 19 | + <div class="uk-grid"> |
| 20 | + {%- block dashboard_panels -%}{%- endblock -%} |
19 | 21 | {% if bags.settings.get('dashboard_iframe') %} |
20 | | - <div class="dashboard-iframe"> |
| 22 | + <div class="uk-panel uk-width-medium-1-1 uk-margin dashboard-iframe"> |
21 | 23 | {{- bags.settings.get('dashboard_iframe')|striptags(['iframe','script'])|raw -}} |
22 | 24 | </div> |
23 | 25 | {% endif %} |
24 | 26 | {% if latestLogs %} |
25 | | - <div id="latest-sources"> |
26 | | - <h3>{% trans %}latest.node-sources.updates{% endtrans %}</h3> |
| 27 | + <div class="uk-panel uk-width-medium-1-1 uk-margin" id="latest-sources"> |
| 28 | + <h3 class="uk-panel-title uk-text-center">{% trans %}latest.node-sources.updates{% endtrans %}</h3> |
27 | 29 | {%- for log in latestLogs -%} |
28 | 30 | <div class="latest-source"> |
29 | 31 | {% set entityPath = log_entity_edit_path(log) %} |
|
61 | 63 | </div> |
62 | 64 | {% endif %} |
63 | 65 | {% if bookmarks|length %} |
64 | | - <div id="dashboard-bookmarks"> |
65 | | - <h3>{% trans %}bookmarks.links{% endtrans %}</h3> |
| 66 | + <div class="uk-panel uk-width-medium-1-3 uk-margin" id="dashboard-bookmarks"> |
| 67 | + <h3 class="uk-panel-title uk-text-center">{% trans %}bookmarks.links{% endtrans %}</h3> |
66 | 68 | <ul> |
67 | 69 | {% for bookmark in bookmarks %} |
68 | 70 | <li><a target="_blank" rel="nofollow noopener" href="{{ bookmark.url }}">{{ bookmark.label }}</a></li> |
69 | 71 | {% endfor %} |
70 | 72 | </ul> |
71 | 73 | </div> |
72 | 74 | {% endif %} |
73 | | - </article> |
74 | | -</section> |
75 | | -{% endblock %} |
| 75 | + </div> |
| 76 | +</article> |
| 77 | +{%- endblock -%} |
0 commit comments