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.

24 lines
978 B

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <template>
  3. <!--Inherit Sidebar and add Archive menu item after Starred -->
  4. <t t-extend="mail.discuss.Sidebar">
  5. <t t-jquery="div[data-thread-id=mailbox_starred]" t-operation="after">
  6. <div
  7. t-attf-class="o_mail_discuss_title_main o_mail_discuss_item #{(activeThreadID == 'channel_archive') ? 'o_active': ''}"
  8. data-thread-id="mailbox_channel_archive"
  9. >
  10. <span class="o_channel_name mail_archives"> <i
  11. class="fa fa-archive"
  12. /> Archive </span>
  13. </div>
  14. </t>
  15. </t>
  16. <!--Add message about empty archive page-->
  17. <t t-extend="mail.widget.Thread.Empty">
  18. <t t-jquery="t:last" t-operation="after">
  19. <t t-if="thread.getID() === 'mailbox_channel_archive'">
  20. <div class="o_thread_title">Archive is empty</div>
  21. </t>
  22. </t>
  23. </t>
  24. </template>