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.

66 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2018 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <templates id="template" xml:space="preserve">
  16. <t t-name="muk_web_utils.CharShare">
  17. <div class="dropdown mk_share_dropdown">
  18. <button class="btn btn-sm btn-primary dropdown-toggle mk_share_button" type="button" data-toggle="dropdown">
  19. <span class="fa fa-share-alt"></span>
  20. <span>Share</span>
  21. </button>
  22. <div class="dropdown-menu">
  23. <h6 class="dropdown-header">Internal</h6>
  24. <a t-if="chatter" class="dropdown-item mk_share_dropdown_message" href="#">
  25. <span class="fa fa-comments"></span>
  26. <span>Message</span>
  27. </a>
  28. <a t-if="chatter" class="dropdown-item mk_share_dropdown_note" href="#">
  29. <span class="fa fa-sticky-note-o"></span>
  30. <span>Note</span>
  31. </a>
  32. <div class="dropdown-divider"></div>
  33. <h6 class="dropdown-header">External</h6>
  34. <a class="dropdown-item mk_share_dropdown_mail" href="#">
  35. <span class="fa fa-envelope"></span>
  36. <span>Mail</span>
  37. </a>
  38. <a t-if="navigator" class="dropdown-item mk_share_dropdown_send" href="#">
  39. <span class="fa fa-paper-plane"></span>
  40. <span>Send</span>
  41. </a>
  42. </div>
  43. </div>
  44. </t>
  45. <t t-name="muk_web_utils.ShareMessage">
  46. <div>
  47. <t t-if="values.url">
  48. <p><span t-esc="values.name"/> shared a link with you!</p>
  49. <a t-attf-href="#{values.url}" style="background-color: #875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 12px;">
  50. <strong>Open</strong>
  51. </a>
  52. </t>
  53. <t t-else="">
  54. <p><span t-esc="values.name"/> shared a message with you!</p>
  55. <p t-esc="values.text" />
  56. </t>
  57. </div>
  58. </t>
  59. </templates>