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.

78 lines
2.7 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.Share">
  17. <div t-attf-class="btn-group mk_share_dropdown #{share_class}">
  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.CharShare">
  46. <t t-call="muk_web_utils.Share">
  47. <t t-set="share_class" t-value="'mk_share_char'"/>
  48. </t>
  49. </t>
  50. <t t-name="muk_web_utils.TextShare">
  51. <t t-call="muk_web_utils.Share">
  52. <t t-set="share_class" t-value="'mk_share_text'"/>
  53. </t>
  54. </t>
  55. <t t-name="muk_web_utils.ShareMessage">
  56. <div>
  57. <t t-if="url">
  58. <p><span t-esc="name"/> shared a link with you!</p>
  59. <a t-attf-href="#{url}" style="background-color: #875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 12px;">
  60. <strong>Open</strong>
  61. </a>
  62. </t>
  63. <t t-else="">
  64. <p><span t-esc="name"/> shared a message with you!</p>
  65. <p t-esc="value" />
  66. </t>
  67. </div>
  68. </t>
  69. </templates>