opigno-dashboard-default.html.twig in Opigno dashboard 8
{% if tabs %}
<div id="block-tabs" class="contextual-region block-local_tasks_block">
{{ tabs }}
</div>
{% endif %}
<base href="{{ base_path ~ base_href }}">
<script type="text/javascript">
window.appConfig = {
columns: 3,
positions: [[], [], [], []],
apiBaseUrl: '{{ base_path }}',
apiRouteName: '{{ route_name }}',
getPositioningUrl: '/opigno_dashboard/get-positioning',
getDefaultPositioningUrl: '/opigno_dashboard/get-default-positioning',
setPositioningUrl: '/opigno_dashboard/set-positioning',
setDefaultPositioningUrl: '/opigno_dashboard/set-default-positioning',
restoreToDefaultAllUrl: '/opigno_dashboard/restore-to-default-all',
getBlocksContentUrl: '/opigno_dashboard/get-blocks',
defaultConfig: '{{ default_config|raw }}',
locales: {
manageYourDashboard: '{{ 'Set dashboard default blocks'|t }}',
remove: '{{ 'remove'|t }}',
close: '{{ 'close'|t }}',
layout: '{{ 'Layout'|t }}',
oneColumn: '{{ '1 column'|t }}',
twoColumns: '{{ '2 columns'|t }}',
asymColumns: '{{ '1/3-2/3 columns'|t }}',
threeColumns: '{{ '3 columns'|t }}',
addBlocks: '{{ 'Add blocks by dragging them below into the canvas'|t }}',
restoreYourDashboard: '{{ 'Restore your dashboard to default:'|t }}',
restoreToDefault: '{{ 'restore to default'|t }}',
restoreToDefaultAll: '{{ 'Restore all users dashboard to default configuration'|t }}'
}
};
</script>
<app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>
File
templates/opigno-dashboard-default.html.twig
View source
- {% if tabs %}
- <div id="block-tabs" class="contextual-region block-local_tasks_block">
- {{ tabs }}
- </div>
- {% endif %}
-
- <base href="{{ base_path ~ base_href }}">
-
- <script type="text/javascript">
- window.appConfig = {
- columns: 3,
- positions: [[], [], [], []],
- apiBaseUrl: '{{ base_path }}',
- apiRouteName: '{{ route_name }}',
- getPositioningUrl: '/opigno_dashboard/get-positioning',
- getDefaultPositioningUrl: '/opigno_dashboard/get-default-positioning',
- setPositioningUrl: '/opigno_dashboard/set-positioning',
- setDefaultPositioningUrl: '/opigno_dashboard/set-default-positioning',
- restoreToDefaultAllUrl: '/opigno_dashboard/restore-to-default-all',
- getBlocksContentUrl: '/opigno_dashboard/get-blocks',
- defaultConfig: '{{ default_config|raw }}',
- locales: {
- manageYourDashboard: '{{ 'Set dashboard default blocks'|t }}',
- remove: '{{ 'remove'|t }}',
- close: '{{ 'close'|t }}',
- layout: '{{ 'Layout'|t }}',
- oneColumn: '{{ '1 column'|t }}',
- twoColumns: '{{ '2 columns'|t }}',
- asymColumns: '{{ '1/3-2/3 columns'|t }}',
- threeColumns: '{{ '3 columns'|t }}',
- addBlocks: '{{ 'Add blocks by dragging them below into the canvas'|t }}',
- restoreYourDashboard: '{{ 'Restore your dashboard to default:'|t }}',
- restoreToDefault: '{{ 'restore to default'|t }}',
- restoreToDefaultAll: '{{ 'Restore all users dashboard to default configuration'|t }}'
- }
- };
- </script>
-
- <app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>