diff --git a/static/styles/zulip.css b/static/styles/zulip.css index 2dbd7a7527..8c3c167fbb 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -728,6 +728,10 @@ td.pointer { width: auto; } +.sender-status .message_edit_notice { + line-height: 18px; +} + .message_edit_notice { font-size: 10px; color: #a1a1a1; diff --git a/static/templates/single_message.handlebars b/static/templates/single_message.handlebars index 81426f10be..e358baa6b1 100644 --- a/static/templates/single_message.handlebars +++ b/static/templates/single_message.handlebars @@ -10,12 +10,28 @@ {{! See ../js/notifications.js for another user of avatar_url. }}
{{#unless status_message}}{{msg/sender_full_name}}{{else}}{{msg/sender_full_name}}{{{ status_message }}}{{/unless}} + style="background-image: url('{{small_avatar_url}}');"/> + + + {{#unless status_message}} + {{msg/sender_full_name}} + {{else}} + {{msg/sender_full_name}} + {{{ status_message }}} + {{/unless}} + {{#if_and last_edit_timestr include_sender}} + {{#if status_message}} +
{{t "EDITED" }}
+ {{/if}} + {{/if_and}} +
{{/include_sender}} {{timestr}} {{#if_and last_edit_timestr include_sender}} -
{{t "EDITED" }}
+ {{#unless status_message}} +
{{t "EDITED" }}
+ {{/unless}} {{/if_and}}
@@ -33,7 +49,7 @@
{{#unless status_message}}{{#if use_match_properties}}{{{msg/match_content}}}{{else}}{{{msg/content}}}{{/if}}{{/unless}}
{{#if last_edit_timestr}} {{#unless include_sender}} -
{{t "EDITED" }}
+
{{t "EDITED" }}
{{/unless}} {{/if}}