You are here

opigno-dashboard-default.html.twig in Opigno dashboard 8

Same filename and directory in other branches
  1. 3.x templates/opigno-dashboard-default.html.twig
{% 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
  1. {% if tabs %}
  2. <div id="block-tabs" class="contextual-region block-local_tasks_block">
  3. {{ tabs }}
  4. </div>
  5. {% endif %}
  6. <base href="{{ base_path ~ base_href }}">
  7. <script type="text/javascript">
  8. window.appConfig = {
  9. columns: 3,
  10. positions: [[], [], [], []],
  11. apiBaseUrl: '{{ base_path }}',
  12. apiRouteName: '{{ route_name }}',
  13. getPositioningUrl: '/opigno_dashboard/get-positioning',
  14. getDefaultPositioningUrl: '/opigno_dashboard/get-default-positioning',
  15. setPositioningUrl: '/opigno_dashboard/set-positioning',
  16. setDefaultPositioningUrl: '/opigno_dashboard/set-default-positioning',
  17. restoreToDefaultAllUrl: '/opigno_dashboard/restore-to-default-all',
  18. getBlocksContentUrl: '/opigno_dashboard/get-blocks',
  19. defaultConfig: '{{ default_config|raw }}',
  20. locales: {
  21. manageYourDashboard: '{{ 'Set dashboard default blocks'|t }}',
  22. remove: '{{ 'remove'|t }}',
  23. close: '{{ 'close'|t }}',
  24. layout: '{{ 'Layout'|t }}',
  25. oneColumn: '{{ '1 column'|t }}',
  26. twoColumns: '{{ '2 columns'|t }}',
  27. asymColumns: '{{ '1/3-2/3 columns'|t }}',
  28. threeColumns: '{{ '3 columns'|t }}',
  29. addBlocks: '{{ 'Add blocks by dragging them below into the canvas'|t }}',
  30. restoreYourDashboard: '{{ 'Restore your dashboard to default:'|t }}',
  31. restoreToDefault: '{{ 'restore to default'|t }}',
  32. restoreToDefaultAll: '{{ 'Restore all users dashboard to default configuration'|t }}'
  33. }
  34. };
  35. </script>
  36. <app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>