PageRenderTime 52ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/message/templates/message_drawer.mustache

http://github.com/moodle/moodle
Mustache | 68 lines | 32 code | 1 blank | 35 comment | 0 complexity | c606cd230abd30dc0094c8c22d1f1844 MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause
  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 core_message/message_drawer
  16. This template will render the message drawer.
  17. Classes required for JS:
  18. * none
  19. Data attributes required for JS:
  20. * All data attributes are required
  21. Context variables required for this template:
  22. * userid The logged in user id
  23. * urls The URLs for the popover
  24. Example context (json):
  25. {}
  26. }}
  27. {{< core/drawer}}
  28. {{$drawercontent}}
  29. <div id="message-drawer-{{uniqid}}" class="message-app" data-region="message-drawer" role="region">
  30. <div class="header-container position-relative" data-region="header-container">
  31. {{> core_message/message_drawer_view_contacts_header }}
  32. {{> core_message/message_drawer_view_conversation_header }}
  33. {{> core_message/message_drawer_view_overview_header }}
  34. {{> core_message/message_drawer_view_search_header }}
  35. {{> core_message/message_drawer_view_settings_header }}
  36. </div>
  37. <div class="body-container position-relative" data-region="body-container">
  38. {{> core_message/message_drawer_view_contact_body }}
  39. {{> core_message/message_drawer_view_contacts_body }}
  40. {{> core_message/message_drawer_view_conversation_body }}
  41. {{> core_message/message_drawer_view_group_info_body }}
  42. {{> core_message/message_drawer_view_overview_body }}
  43. {{> core_message/message_drawer_view_search_body }}
  44. {{> core_message/message_drawer_view_settings_body }}
  45. </div>
  46. <div class="footer-container position-relative" data-region="footer-container">
  47. {{> core_message/message_drawer_view_conversation_footer }}
  48. {{> core_message/message_drawer_view_overview_footer }}
  49. </div>
  50. </div>
  51. {{/drawercontent}}
  52. {{/core/drawer}}
  53. {{#js}}
  54. require(['jquery', 'core_message/message_drawer'], function($, MessageDrawer) {
  55. var root = $('#message-drawer-{{uniqid}}');
  56. MessageDrawer.init(root, '{{uniqid}}', false);
  57. });
  58. {{/js}}