You are here

opigno-dashboard.html.twig in Opigno dashboard 8

Same filename and directory in other branches
  1. 3.x templates/opigno-dashboard.html.twig
<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',
    getBlocksContentUrl: '/opigno_dashboard/get-blocks',
    defaultConfig: '{{ default_config|raw }}',
    defaultColumns: '{{ default_columns|raw }}',
    locales: {
      manageYourDashboard: '{{ 'Manage your dashboard'|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 }}'
    }
  };
</script>

<app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>

File

templates/opigno-dashboard.html.twig
View source
  1. <base href="{{ base_path ~ base_href }}">
  2. <script type="text/javascript">
  3. window.appConfig = {
  4. columns: 3,
  5. positions: [[], [], [], []],
  6. apiBaseUrl: '{{ base_path }}',
  7. apiRouteName: '{{ route_name }}',
  8. getPositioningUrl: '/opigno_dashboard/get-positioning',
  9. getDefaultPositioningUrl: '/opigno_dashboard/get-default-positioning',
  10. setPositioningUrl: '/opigno_dashboard/set-positioning',
  11. getBlocksContentUrl: '/opigno_dashboard/get-blocks',
  12. defaultConfig: '{{ default_config|raw }}',
  13. defaultColumns: '{{ default_columns|raw }}',
  14. locales: {
  15. manageYourDashboard: '{{ 'Manage your dashboard'|t }}',
  16. remove: '{{ 'remove'|t }}',
  17. close: '{{ 'close'|t }}',
  18. layout: '{{ 'Layout'|t }}',
  19. oneColumn: '{{ '1 column'|t }}',
  20. twoColumns: '{{ '2 columns'|t }}',
  21. asymColumns: '{{ '1/3-2/3 columns'|t }}',
  22. threeColumns: '{{ '3 columns'|t }}',
  23. addBlocks: '{{ 'Add blocks by dragging them below into the canvas'|t }}',
  24. restoreYourDashboard: '{{ 'Restore your dashboard to default:'|t }}',
  25. restoreToDefault: '{{ 'restore to default'|t }}'
  26. }
  27. };
  28. </script>
  29. <app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>