You are here

opigno-dashboard-default.html.twig in Opigno dashboard 3.x

Same filename and directory in other branches
  1. 8 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 }}',
    loading: true,
    socialFeedMobile: {
      title: '{{ 'Your feed'|t }}',
      img: '{{ social_feed_mobile.img }}',
      newPostsAmount: '{{ social_feed_mobile.new_posts_amount }}',
    },
    locales: {
      title: '{{ 'Home'|t }}',
      manageYourDashboard: '{{ 'Set dashboard default blocks'|t }}',
      remove: '{{ 'remove'|t }}',
      close: '{{ 'close'|t }}',
      saveBtn: '{{ 'Save'|t }}',
      layout: '{{ 'Layout'|t }}',
      oneColumn: '{{ '1 column'|t }}',
      twoColumns: '{{ '2 columns'|t }}',
      asymColumns: '{{ '1/3-2/3 columns'|t }}',
      threeColumns: '{{ '3 columns'|t }}',
      threeAsymColumns: '{{ '3/12-5/12-4/12 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. loading: true,
  21. socialFeedMobile: {
  22. title: '{{ 'Your feed'|t }}',
  23. img: '{{ social_feed_mobile.img }}',
  24. newPostsAmount: '{{ social_feed_mobile.new_posts_amount }}',
  25. },
  26. locales: {
  27. title: '{{ 'Home'|t }}',
  28. manageYourDashboard: '{{ 'Set dashboard default blocks'|t }}',
  29. remove: '{{ 'remove'|t }}',
  30. close: '{{ 'close'|t }}',
  31. saveBtn: '{{ 'Save'|t }}',
  32. layout: '{{ 'Layout'|t }}',
  33. oneColumn: '{{ '1 column'|t }}',
  34. twoColumns: '{{ '2 columns'|t }}',
  35. asymColumns: '{{ '1/3-2/3 columns'|t }}',
  36. threeColumns: '{{ '3 columns'|t }}',
  37. threeAsymColumns: '{{ '3/12-5/12-4/12 columns'|t }}',
  38. addBlocks: '{{ 'Add blocks by dragging them below into the canvas'|t }}',
  39. restoreYourDashboard: '{{ 'Restore your dashboard to default:'|t }}',
  40. restoreToDefault: '{{ 'Restore to default'|t }}',
  41. restoreToDefaultAll: '{{ 'Restore all users dashboard to default configuration'|t }}'
  42. }
  43. };
  44. </script>
  45. <app-root class="d-block dashboard">{{ 'Loading dashboard...'|t }}</app-root>