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.

73 lines
2.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- © 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  4. <template>
  5. <t t-name="mail.tracking.status">
  6. <t t-if="tracking[0] == 'unknown'">
  7. <span class="mail_tracking_unknown">
  8. <i class="fa fa-ban"></i>
  9. </span>
  10. </t>
  11. <t t-if="tracking[0] == 'waiting'">
  12. <span class="mail_tracking_waiting mail_tracking_pointer">
  13. <i class="fa fa-clock-o"></i>
  14. </span>
  15. </t>
  16. <t t-if="tracking[0] == 'error'">
  17. <span class="mail_tracking_error mail_tracking_pointer">
  18. <i class="fa fa-remove"></i>
  19. </span>
  20. </t>
  21. <t t-if="tracking[0] == 'sent'">
  22. <span class="mail_tracking_sent mail_tracking_pointer">
  23. <i class="fa fa-check"></i>
  24. </span>
  25. </t>
  26. <t t-if="tracking[0] == 'delivered'">
  27. <span class="fa-stack mail_tracking_delivered mail_tracking_pointer">
  28. <i class="fa fa-check fa-stack-1x" style="margin-left:1px"></i>
  29. <i class="fa fa-check fa-inverse fa-stack-1x" style="margin-left:-2px;"></i>
  30. <i class="fa fa-check fa-stack-1x" style="margin-left:-3px"></i>
  31. </span>
  32. </t>
  33. <t t-if="tracking[0] == 'opened'">
  34. <span class="fa-stack mail_tracking_opened mail_tracking_pointer">
  35. <i class="fa fa-check fa-stack-1x" style="margin-left:1px"></i>
  36. <i class="fa fa-check fa-inverse fa-stack-1x" style="margin-left:-2px;"></i>
  37. <i class="fa fa-check fa-stack-1x" style="margin-left:-3px"></i>
  38. </span>
  39. </t>
  40. </t>
  41. <t t-extend="mail.ChatThread.Message">
  42. <t t-jquery="p[class='o_mail_info']" t-operation="after">
  43. <p class="o_mail_tracking">
  44. <strong>To:</strong>
  45. <t t-set="first_tracking" t-value="true"/>
  46. <t t-foreach="message.partner_trackings" t-as="tracking">
  47. <t t-if="!first_tracking">
  48. -
  49. </t>
  50. <t t-if="tracking[3]">
  51. <a class="o_mail_action_tracking_partner"
  52. t-att-data-partner="tracking[3]"
  53. t-attf-href="#model=res.partner&amp;id=#{tracking[3]}">
  54. <t t-esc="tracking[2]"/>
  55. </a>
  56. </t>
  57. <t t-if="!tracking[3]">
  58. <span><t t-esc="tracking[2]"/></span>
  59. </t>
  60. <span class="mail_tracking o_mail_action_tracking_status"
  61. t-att-data-tracking="tracking[1]"
  62. t-attf-title="Status: #{tracking[0]}">
  63. <t t-call="mail.tracking.status"/>
  64. </span>
  65. <t t-set="first_tracking" t-value="false"/>
  66. </t>
  67. </p>
  68. </t>
  69. </t>
  70. </template>