conversationItem.handlebars 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <li data-id="{{id}}" class="{{classes}} admin-link-hover-area">
  2. {{>avatar}}
  3. <a href="/conversations/{{id}}?conversation[workflow_state]=unread"
  4. class="action_mark_as_unread standard_action"
  5. data-track-category="Thread Actions"
  6. data-track-action="Individual Left Side"
  7. data-track-label="Mark as Unread"
  8. role="button"
  9. title="{{#t "inbox_actions.mark_as_unread"}}Mark as Unread{{/t}}">{{#t "inbox_actions.mark_as_unread"}}Mark as Unread{{/t}}</a>
  10. <a href="/conversations/{{id}}?conversation[workflow_state]=read"
  11. class="action_mark_as_read standard_action"
  12. data-track-category="Thread Actions"
  13. data-track-action="Individual Left Side"
  14. data-track-label="Mark as Read"
  15. role="button"
  16. title="{{#t "inbox_actions.mark_as_read"}}Mark as Read{{/t}}">{{#t "inbox_actions.mark_as_read"}}Mark as Read{{/t}}</a>
  17. <a href="/conversations/{{id}}?conversation[starred]=true"
  18. class="action_star standard_action"
  19. data-track-category="Thread Actions"
  20. data-track-action="Individual Left Side"
  21. data-track-label="Star"
  22. role="button"
  23. title="{{#t "inbox_actions.action_star"}}Star{{/t}}">{{#t "inbox_actions.action_star"}}Star{{/t}}</a>
  24. <a href="/conversations/{{id}}?conversation[starred]=false"
  25. class="action_unstar standard_action"
  26. data-track-category="Thread Actions"
  27. data-track-action="Individual Left Side"
  28. data-track-label="Unstar"
  29. role="button"
  30. title="{{#t "inbox_actions.action_unstar"}}Unstar{{/t}}">{{#t "inbox_actions.action_unstar"}}Unstar{{/t}}</a>
  31. <span class="date">{{lastMessageAt}}</span>
  32. <div class="conversation-summary">
  33. <img class="attachments" src="/images/messages/attach-gray.png" title="{{#t "has_attachments"}}This conversation has one or more attachments{{/t}}">
  34. <img class="media_objects" src="/images/messages/media-gray.png" title="{{#t "has_media"}}This conversation has one or more media comments{{/t}}">
  35. <span class="audience">{{{audienceHtml}}}</span>
  36. </div>
  37. <span class="count"{{#if hideCount}} style="display:none"{{/if}}>{{message_count}}</span>
  38. <p>{{lastMessage}}</p>
  39. <div class="admin-links">
  40. <button class="al-trigger btn btn-mini" data-kyle-menu-options='{"appendMenuTo": "#menu-wrapper", "notifyMenuActiveOnParent": "li.admin-link-hover-area"}'>
  41. <i class="icon-settings"></i><i class="icon-mini-arrow-down"></i>
  42. <div class="screenreader-only">{{#t "inbox_actions_description"}}Message Actions Menu{{/t}}</div>
  43. </button>
  44. <ul class="al-options" data-id="{{id}}">
  45. <li><a href="/conversations/{{id}}?conversation[workflow_state]=unread"
  46. class="action_mark_as_unread standard_action"
  47. data-track-category="Thread Actions"
  48. data-track-action="Individual Gear"
  49. data-track-label="Mark as Unread">
  50. {{#t "inbox_actions.mark_as_unread"}}Mark as Unread{{/t}}
  51. </a></li>
  52. <li><a href="/conversations/{{id}}?conversation[workflow_state]=read"
  53. class="action_mark_as_read standard_action"
  54. data-track-category="Thread Actions"
  55. data-track-action="Individual Gear"
  56. data-track-label="Mark as Read">
  57. {{#t "inbox_actions.mark_as_read"}}Mark as Read{{/t}}
  58. </a></li>
  59. <li><a href="/conversations/{{id}}?conversation[starred]=false"
  60. class="action_unstar standard_action"
  61. data-track-category="Thread Actions"
  62. data-track-action="Individual Gear"
  63. data-track-label="Unstar">
  64. {{#t "inbox_actions.action_unstar"}}Unstar{{/t}}
  65. </a></li>
  66. <li><a href="/conversations/{{id}}?conversation[starred]=true"
  67. class="action_star standard_action"
  68. data-track-category="Thread Actions"
  69. data-track-action="Individual Gear"
  70. data-track-label="Star">
  71. {{#t "inbox_actions.unstar"}}Star{{/t}}
  72. </a></li>
  73. <li><a href="/conversations/{{id}}?conversation[subscribed]=0"
  74. class="action_unsubscribe standard_action"
  75. data-track-category="Thread Actions"
  76. data-track-action="Individual Gear"
  77. data-track-label="Unsubscribe">
  78. {{#t "inbox_actions.unsubscribe"}}Unsubscribe{{/t}}
  79. </a></li>
  80. <li><a href="/conversations/{{id}}?conversation[subscribed]=1"
  81. class="action_subscribe standard_action"
  82. data-track-category="Thread Actions"
  83. data-track-action="Individual Gear"
  84. data-track-label="Subscribe">
  85. {{#t "inbox_actions.subscribe"}}Subscribe{{/t}}
  86. </a></li>
  87. <li><a href="/conversations/{{id}}?conversation[workflow_state]=archived"
  88. class="action_archive standard_action"
  89. data-track-category="Thread Actions"
  90. data-track-action="Individual Gear"
  91. data-track-label="Archive">
  92. {{#t "inbox_actions.archive"}}Archive{{/t}}
  93. </a></li>
  94. <li><a href="/conversations/{{id}}?conversation[workflow_state]=read"
  95. class="action_unarchive standard_action"
  96. data-track-category="Thread Actions"
  97. data-track-action="Individual Gear"
  98. data-track-label="Unarchive">
  99. {{#t "inbox_actions.unarchive"}}Unarchive{{/t}}
  100. </a></li>
  101. <li><a href="/conversations/{{id}}"
  102. class="action_delete_all">
  103. {{#t "inbox_actions.delete"}}Delete{{/t}}
  104. </a></li>
  105. </ul>
  106. </div>
  107. <a href="/conversations/{{id}}" class="details_link">{{#t "read_more"}}more...{{/t}}</a>
  108. </li>