2014-03-14 16:28:54 +01:00
<div zid=" {{ msg / id }} " id=" {{ table_name }} {{ msg / id }} "
2014-04-30 21:11:15 +02:00
class="message_row {{ ^ msg / is_stream }} private-message {{ / msg / is_stream }} {{ # in clude_sender }} include-sender {{ / in clude_sender }} {{ # contains_mention }} mention {{ / contains_mention }} {{ # in clude_footer }} last_message {{ / in clude_footer }} {{ # msg .unread }} unread {{ / msg .unread }} {{ # if msg .local_id }} local {{ / if }} selectable_row">
2014-02-11 16:14:29 +01:00
<div class="unread_marker"><div class="unread-marker-fill"></div></div>
2014-03-14 16:28:54 +01:00
<div class="messagebox {{ ^ in clude_sender }} prev_is_same_sender {{ / in clude_sender }} {{ ^ msg / is_stream }} private-message {{ / msg / is_stream }} {{ # if next_is_same_sender }} next_is_same_sender {{ / if }} "
style="box-shadow: inset 2px 0px 0px 0px {{ # if msg / is_stream }} {{ background_color }} {{ else }} #444444 {{ / if }} , -1px 0px 0px 0px {{ # if msg / is_stream }} {{ background_color }} {{ else }} #444444 {{ / if }} ;">
2014-02-11 16:14:29 +01:00
<div class="messagebox-border">
<div class="messagebox-content">
<div class="message_top_line">
{{ # in clude_sender }}
<span class="message_sender {{ ^ status_message }} sender_info_hover {{ / status_message }} ">
{{! See ../js/notifications.js for another user of avatar_url. }}
2016-08-19 00:28:28 +02:00
<div class="u- {{ msg / sender_id }} inline_profile_picture {{ # status_message }} sender_info_hover {{ / status_message }} "
2016-06-01 19:57:04 +02:00
style="background-image: url(' {{ small_avatar_url }} ');"/>
2017-02-12 04:53:02 +01:00
{{ # if status_message }}
<span class="sender-status">
<span class="sender_name-in-status sender_info_hover"> {{ msg / sender_full_name }} </span>
2017-01-11 16:45:06 +01:00
{{ # if sender_is_bot }}
<img class="bot-icon" title=" {{ t 'Bot' }} " src="/static/images/bot.svg" />
{{ / if }}
2017-02-12 04:53:02 +01:00
{{{ status_message }}}
{{ # if _ and last_edit_timestr in clude_sender }}
2016-12-15 10:11:05 +01:00
<div class="message_edit_notice" title=" {{ # tr this }} Edited (__last_edit_timestr__) {{ / tr }} "> {{ t "EDITED" }} </div>
2017-02-12 04:53:02 +01:00
{{ / if _ and }}
</span>
{{ else }}
<span class="sender_name"> {{ msg / sender_full_name }} </span>
2017-01-11 16:45:06 +01:00
{{ # if sender_is_bot }}
<img class="bot-icon" title=" {{ t 'Bot' }} " src="/static/images/bot.svg" />
{{ / if }}
2017-02-12 04:53:02 +01:00
{{ / if }}
2014-02-11 16:14:29 +01:00
</span>
{{ / in clude_sender }}
2014-04-30 21:11:15 +02:00
<span class="message_time {{ # if msg .local_id }} notvisible {{ / if }} {{ # if status_message }} status-time {{ / if }} "> {{ timestr }} </span>
2014-02-11 16:14:29 +01:00
{{ # if _ and last_edit_timestr in clude_sender }}
2016-06-01 19:57:04 +02:00
{{ # unless status_message }}
2016-12-15 10:11:05 +01:00
<div class="message_edit_notice" title=" {{ # tr this }} Edited (__last_edit_timestr__) {{ / tr }} "> {{ t "EDITED" }} </div>
2016-06-01 19:57:04 +02:00
{{ / unless }}
2014-02-11 16:14:29 +01:00
{{ / if _ and }}
2014-06-10 22:34:36 +02:00
<div class="message_controls {{ # status_message }} sender-status-controls {{ / status_message }} ">
2016-12-31 06:38:23 +01:00
{{ # if msg / sent_by_me }}
2017-02-23 23:33:57 +01:00
<div class="edit_content"></div>
2016-12-31 06:38:23 +01:00
{{ else }}
<div class="reactions_hover">
2017-03-13 09:21:34 +01:00
<i class="icon-vector-smile reaction_button" data-msgid=" {{ msg / id }} " title=" {{ # tr this }} Add emoji reaction {{ / tr }} "></i>
2016-12-31 06:38:23 +01:00
</div>
{{ / if }}
2014-02-11 16:14:29 +01:00
<div class="info actions_hover">
2017-03-13 09:21:34 +01:00
<i class="icon-vector-chevron-down" title=" {{ # tr this }} Message actions {{ / tr }} "></i>
2014-02-11 16:14:29 +01:00
</div>
2014-04-30 21:11:15 +02:00
<div class="message_failed {{ # unless msg .failed_request }} notvisible {{ / unless }} ">
2017-03-09 08:43:46 +01:00
<i class="icon-vector-refresh refresh-failed-message" data-toggle="tooltip" title=" {{ t 'Retry' }} "></i>
<i class="icon-vector-pencil edit-failed-message" data-toggle="tooltip" title=" {{ t 'Edit' }} "></i>
<i class="icon-vector-remove-sign remove-failed-message" data-toggle="tooltip" title=" {{ t 'Cancel' }} "></i>
2014-02-11 16:14:29 +01:00
</div>
2017-02-23 23:33:57 +01:00
<div class="star {{ # if msg / starred }} icon-vector-star {{ else }} icon-vector-star-empty {{ / if }} {{ # if msg / starred }} {{ else }} empty-star {{ / if }} " title=" {{ # tr this }} {{ # if msg / starred }} Unstar {{ else }} Star {{ / if }} this message {{ / tr }} ">
</div>
2014-02-11 16:14:29 +01:00
</div>
</div>
2014-03-18 23:24:23 +01:00
<div class="message_content"> {{ # unless status_message }} {{ # if use_match_properties }} {{{ msg / match_content }}} {{ else }} {{{ msg / content }}} {{ / if }} {{ / unless }} </div>
2014-02-11 16:14:29 +01:00
{{ # if last_edit_timestr }}
{{ # unless in clude_sender }}
2016-12-15 10:11:05 +01:00
<div class="message_edit_notice" title=" {{ # tr this }} Edited (__last_edit_timestr__) {{ / tr }} "> {{ t "EDITED" }} </div>
2014-02-11 16:14:29 +01:00
{{ / unless }}
{{ / if }}
<div class="message_edit">
2014-03-14 16:28:54 +01:00
<div class="message_edit_form" id=" {{ msg / id }} "></div>
2014-02-11 16:14:29 +01:00
</div>
2016-05-12 13:53:41 +02:00
<div class="message_expander message_length_controller" title=" {{ t 'See the rest of this message' }} "> {{ t "[More...]" }} </div>
<div class="message_condenser message_length_controller" title=" {{ t 'Make this message take up less space on the screen' }} "> {{ t "[Condense this message]" }} </div>
2016-12-02 13:23:23 +01:00
<div class="message_reactions" data-message-id=" {{ msg / id }} "> {{ partial "message_reactions" }} </div>
2014-02-11 16:14:29 +01:00
</div>
</div>
</div>
2014-03-08 08:59:38 +01:00
</div>