You are here

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

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