You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--# Copyright 2018 Artyom Losev <https://it-projects.info/team/ArtyomLosev>
  3. # Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
  4. # License MIT (https://opensource.org/licenses/MIT). -->
  5. <template>
  6. <!--Inherit Sidebar and add All messages menu item after Starred -->
  7. <t t-extend="mail.discuss.Sidebar">
  8. <t t-jquery="div[data-thread-id=mailbox_starred]" t-operation="after">
  9. <div
  10. t-attf-class="o_mail_discuss_title_main o_mail_mailbox_title_all o_mail_discuss_item #{(activeThreadID == 'channel_all') ? 'o_active': ''}"
  11. data-thread-id="mailbox_channel_all"
  12. >
  13. <span class="o_channel_name mail_all"> <i
  14. class="fa fa-database"
  15. /> All messages </span>
  16. </div>
  17. </t>
  18. </t>
  19. <!--Add message about empty all messages page-->
  20. <t t-extend="mail.widget.Thread.Empty">
  21. <t t-jquery="t:last" t-operation="after">
  22. <t t-if="thread.getID() === 'mailbox_channel_all'">
  23. <div class="o_thread_title">No messages</div>
  24. </t>
  25. </t>
  26. </t>
  27. </template>