PageRenderTime 24ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/blocks/timeline/templates/main.mustache

https://github.com/mspall/moodle
Mustache | 58 lines | 33 code | 1 blank | 24 comment | 0 complexity | 908950eed81ce7ba1b7b52981cae135a MD5 | raw file
  1. {{!
  2. This file is part of Moodle - http://moodle.org/
  3. Moodle is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. Moodle is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with Moodle. If not, see <http://www.gnu.org/licenses/>.
  13. }}
  14. {{!
  15. @template block_timeline/main
  16. This template renders the main content area for the timeline block.
  17. Example context (json):
  18. {}
  19. }}
  20. <div id="block-timeline-{{uniqid}}-{{timelineinstanceid}}" class="block-timeline" data-region="timeline">
  21. <div class="p-0 px-2">
  22. <div class="row no-gutters">
  23. <div class="mr-2 mb-1">
  24. {{> block_timeline/nav-day-filter }}
  25. </div>
  26. <div class="mr-auto mb-1">
  27. {{> block_timeline/nav-view-selector }}
  28. </div>
  29. <div class="col-md-6 col-sm-8 col-12 mb-1 d-flex justify-content-end nav-search">
  30. {{> block_timeline/nav-search }}
  31. </div>
  32. </div>
  33. <div class="pb-3 px-2 border-bottom"></div>
  34. </div>
  35. <div class="p-0">
  36. {{> block_timeline/view }}
  37. </div>
  38. </div>
  39. {{#js}}
  40. require(
  41. [
  42. 'jquery',
  43. 'block_timeline/main',
  44. ],
  45. function(
  46. $,
  47. Main
  48. ) {
  49. var root = $('#block-timeline-{{uniqid}}-{{timelineinstanceid}}');
  50. Main.init(root);
  51. });
  52. {{/js}}