From 23f8ec9759fbc9084eda9231cda506c117ba7525 Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Sat, 15 Apr 2017 08:06:58 +0530 Subject: [PATCH] Clean single_message.handlebars to use 4 space indents. --- static/templates/single_message.handlebars | 140 ++++++++++----------- tools/check-templates | 1 - 2 files changed, 70 insertions(+), 71 deletions(-) diff --git a/static/templates/single_message.handlebars b/static/templates/single_message.handlebars index 5e206f3793..d115c738b8 100644 --- a/static/templates/single_message.handlebars +++ b/static/templates/single_message.handlebars @@ -1,75 +1,75 @@
-
-
-
-
-
- {{#include_sender}} - - {{! See ../js/notifications.js for another user of avatar_url. }} -
- {{#if status_message}} - - {{msg/sender_full_name}} - {{#if sender_is_bot}} - - {{/if}} - {{{ status_message }}} - {{#if_and last_edit_timestr include_sender}} -
{{t "EDITED" }}
- {{/if_and}} -
- {{else}} - {{msg/sender_full_name}} - {{#if sender_is_bot}} - - {{/if}} - {{/if}} - - {{/include_sender}} - {{t 'Copied!' }} - {{timestr}} - {{#if_and last_edit_timestr include_sender}} - {{#unless status_message}} -
{{t "EDITED" }}
- {{/unless}} - {{/if_and}} -
- {{#if msg/sent_by_me}} -
- {{else}} -
- + class="message_row{{^msg/is_stream}} private-message{{/msg/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#contains_mention}} mention{{/contains_mention}}{{#include_footer}} last_message{{/include_footer}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.local_id}}local{{/if}} selectable_row"> +
+
+
+
+
+ {{#include_sender}} + + {{! See ../js/notifications.js for another user of avatar_url. }} +
+ {{#if status_message}} + + {{msg/sender_full_name}} + {{#if sender_is_bot}} + + {{/if}} + {{{ status_message }}} + {{#if_and last_edit_timestr include_sender}} +
{{t "EDITED" }}
+ {{/if_and}} +
+ {{else}} + {{msg/sender_full_name}} + {{#if sender_is_bot}} + + {{/if}} + {{/if}} + + {{/include_sender}} + {{t 'Copied!' }} + {{timestr}} + {{#if_and last_edit_timestr include_sender}} + {{#unless status_message}} +
{{t "EDITED" }}
+ {{/unless}} + {{/if_and}} +
+ {{#if msg/sent_by_me}} +
+ {{else}} +
+ +
+ {{/if}} +
+ +
+
+ + + +
+
+
+
+
+
{{#unless status_message}}{{#if use_match_properties}}{{{msg/match_content}}}{{else}}{{{msg/content}}}{{/if}}{{/unless}}
+ {{#if last_edit_timestr}} + {{#unless include_sender}} +
{{t "EDITED" }}
+ {{/unless}} + {{/if}} +
+
+
+
{{t "[More...]" }}
+
{{t "[Condense this message]" }}
+
{{ partial "message_reactions" }}
- {{/if}} -
- -
-
- - - -
-
-
-
-
{{#unless status_message}}{{#if use_match_properties}}{{{msg/match_content}}}{{else}}{{{msg/content}}}{{/if}}{{/unless}}
- {{#if last_edit_timestr}} - {{#unless include_sender}} -
{{t "EDITED" }}
- {{/unless}} - {{/if}} -
-
-
-
{{t "[More...]" }}
-
{{t "[Condense this message]" }}
-
{{ partial "message_reactions" }}
-
-
diff --git a/tools/check-templates b/tools/check-templates index 9a966d2ba1..8103cd5bbf 100755 --- a/tools/check-templates +++ b/tools/check-templates @@ -219,7 +219,6 @@ def check_handlebar_templates(templates): 'static/templates/admin_user_list.handlebars', 'static/templates/bot_avatar_row.handlebars', 'static/templates/message_edit_history.handlebars', - 'static/templates/single_message.handlebars', 'static/templates/stream_privacy.handlebars', 'static/templates/user_sidebar_actions.handlebars', 'static/templates/settings/account-settings.handlebars',