compose.html: Clean up to use 4 space indentation.

This commit is contained in:
Aditya Bansal 2018-01-27 22:55:34 +05:30 committed by Tim Abbott
parent 709ffe6361
commit 52c40668bc
2 changed files with 130 additions and 131 deletions

View File

@ -1,135 +1,135 @@
<div id="compose"> <div id="compose">
<div id="compose-notifications" class="notifications above-composebox"> <div id="compose-notifications" class="notifications above-composebox">
</div>
<div id="compose-container">
<div id="compose_controls" class="compose-content new-style">
<div id="nonexistent_stream_reply_error" class="alert-error">
<span class="compose-send-status-close">&times;</span>
<span id="compose-reply-error-msg"></span>
</div>
<div id="compose_buttons">
<span class="new_message_button">
<a class="drafts-link no-style" href="#drafts" title="{{ _('Drafts') }} (d)">
<button type="button" class="button small rounded compose_drafts_button">
<span>{{ _('Drafts') }}</span>
</button>
</a>
<span class="alert-draft pull-left">{{ _('Saved as draft') }}</span>
</span>
<span class="new_message_button">
<button type="button" class="button small rounded compose_stream_button"
id="left_bar_compose_stream_button_big"
title="{{ _('New topic') }} (c)">
<span class="compose_stream_button_label">{{ _('New topic') }}</span>
</button>
</span>
{% if not embedded %}
<span class="new_message_button">
<button type="button" class="button small rounded compose_private_button"
id="left_bar_compose_private_button_big"
title="{{ _('New private message') }} (C)">
<span class="compose_private_button_label">{{ _('New private message') }}</span>
</button>
</span>
{% endif %}
<span class="new_message_button">
<button type="button" class="button small rounded compose_reply_button"
id="left_bar_compose_reply_button_big"
title="{{ _('Reply') }} (r)">
<span class="compose_reply_button_label">{{ _('Reply') }}</span>
</button>
</span>
</div>
</div> </div>
<div class="message_comp compose-content"> <div id="compose-container">
<div class="alert" id="compose-send-status"> <div id="compose_controls" class="compose-content new-style">
<span class="compose-send-status-close">&times;</span> <div id="nonexistent_stream_reply_error" class="alert-error">
<span id="compose-error-msg"></span> <span class="compose-send-status-close">&times;</span>
</div> <span id="compose-reply-error-msg"></span>
<div id="compose_invite_users" class="alert home-error-bar"></div> </div>
<div id="compose-all-everyone" class="alert home-error-bar"></div> <div id="compose_buttons">
<div id="compose-announce" class="alert home-error-bar"></div> <span class="new_message_button">
<div id="compose_private_stream_alert" class="alert home-error-bar"></div> <a class="drafts-link no-style" href="#drafts" title="{{ _('Drafts') }} (d)">
<div id="out-of-view-notification" class="notification-alert"></div> <button type="button" class="button small rounded compose_drafts_button">
<div class="composition-area"> <span>{{ _('Drafts') }}</span>
<button type="button" class="close" id='compose_close' title="{{ _('Cancel compose') }} (Esc)">&times;</button> </button>
<form id="send_message_form" action="/json/messages" method="post"> </a>
{{ csrf_input }} <span class="alert-draft pull-left">{{ _('Saved as draft') }}</span>
<table class="compose_table"> </span>
<tbody> <span class="new_message_button">
<tr class="ztable_layout_row"> <button type="button" class="button small rounded compose_stream_button"
<td class="ztable_comp_col1" /> id="left_bar_compose_stream_button_big"
<td class="ztable_comp_col2" /> title="{{ _('New topic') }} (c)">
</tr> <span class="compose_stream_button_label">{{ _('New topic') }}</span>
<tr id="stream-message"> </button>
<td class="message_header_colorblock message_header_stream left_part"> </span>
</td> {% if not embedded %}
<td class="right_part"> <span class="new_message_button">
<span id="compose-lock-icon"> <button type="button" class="button small rounded compose_private_button"
<i class="icon-vector-lock" title="{{ _('This is an invite-only stream') }}"></i> id="left_bar_compose_private_button_big"
</span> title="{{ _('New private message') }} (C)">
<input type="text" class="recipient_box" name="stream" id="stream" <span class="compose_private_button_label">{{ _('New private message') }}</span>
maxlength="30" </button>
value="" placeholder="{{ _('Stream') }}" autocomplete="off" tabindex="0" aria-label="{{ _('Stream') }}"/> </span>
<i class="icon-vector-narrow icon-vector-small"></i> {% endif %}
<input type="text" class="recipient_box" name="subject" id="subject" <span class="new_message_button">
maxlength="60" <button type="button" class="button small rounded compose_reply_button"
value="" placeholder="{{ _('Topic') }}" autocomplete="off" tabindex="0" aria-label="{{ _('Topic') }}"/> id="left_bar_compose_reply_button_big"
</td> title="{{ _('Reply') }} (r)">
</tr> <span class="compose_reply_button_label">{{ _('Reply') }}</span>
<tr id="private-message"> </button>
<td class="message_header_colorblock message_header_private_message message_header left_part"> </span>
</div>
</div>
<div class="message_comp compose-content">
<div class="alert" id="compose-send-status">
<span class="compose-send-status-close">&times;</span>
<span id="compose-error-msg"></span>
</div>
<div id="compose_invite_users" class="alert home-error-bar"></div>
<div id="compose-all-everyone" class="alert home-error-bar"></div>
<div id="compose-announce" class="alert home-error-bar"></div>
<div id="compose_private_stream_alert" class="alert home-error-bar"></div>
<div id="out-of-view-notification" class="notification-alert"></div>
<div class="composition-area">
<button type="button" class="close" id='compose_close' title="{{ _('Cancel compose') }} (Esc)">&times;</button>
<form id="send_message_form" action="/json/messages" method="post">
{{ csrf_input }}
<table class="compose_table">
<tbody>
<tr class="ztable_layout_row">
<td class="ztable_comp_col1" />
<td class="ztable_comp_col2" />
</tr>
<tr id="stream-message">
<td class="message_header_colorblock message_header_stream left_part">
</td>
<td class="right_part">
<span id="compose-lock-icon">
<i class="icon-vector-lock" title="{{ _('This is an invite-only stream') }}"></i>
</span>
<input type="text" class="recipient_box" name="stream" id="stream"
maxlength="30"
value="" placeholder="{{ _('Stream') }}" autocomplete="off" tabindex="0" aria-label="{{ _('Stream') }}"/>
<i class="icon-vector-narrow icon-vector-small"></i>
<input type="text" class="recipient_box" name="subject" id="subject"
maxlength="60"
value="" placeholder="{{ _('Topic') }}" autocomplete="off" tabindex="0" aria-label="{{ _('Topic') }}"/>
</td>
</tr>
<tr id="private-message">
<td class="message_header_colorblock message_header_private_message message_header left_part">
</td> </td>
<td class="right_part"> <td class="right_part">
<div class="pm_recipient"> <div class="pm_recipient">
<span class="you_text">{{ _('You and') }}</span> <span class="you_text">{{ _('You and') }}</span>
<input type="text" class="recipient_box" name="recipient" id="private_message_recipient" <input type="text" class="recipient_box" name="recipient" id="private_message_recipient"
value="" placeholder="{{ _('one or more people...') }}" autocomplete="off" tabindex="0"/> value="" placeholder="{{ _('one or more people...') }}" autocomplete="off" tabindex="0"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="messagebox" colspan="2"> <td class="messagebox" colspan="2">
<textarea class="new_message_textarea" name="content" id='compose-textarea' <textarea class="new_message_textarea" name="content" id='compose-textarea'
value="" placeholder="{{ _('Compose your message here...') }}" tabindex="0" maxlength="10000" aria-label="{{ _('Compose your message here...') }}"></textarea> value="" placeholder="{{ _('Compose your message here...') }}" tabindex="0" maxlength="10000" aria-label="{{ _('Compose your message here...') }}"></textarea>
<div class="scrolling_list" id="preview_message_area" style="display:none;"> <div class="scrolling_list" id="preview_message_area" style="display:none;">
<div id="markdown_preview_spinner"></div> <div id="markdown_preview_spinner"></div>
<div id="preview_content"></div> <div id="preview_content"></div>
</div> </div>
<div class="drag"></div> <div class="drag"></div>
<div id="below-compose-content"> <div id="below-compose-content">
<input type="file" id="file_input" class="notvisible pull-left" multiple /> <input type="file" id="file_input" class="notvisible pull-left" multiple />
<a class="message-control-button icon-vector-smile" <a class="message-control-button icon-vector-smile"
id="emoji_map" href="#" title="{{ _('Add emoji') }}"></a> id="emoji_map" href="#" title="{{ _('Add emoji') }}"></a>
<a class="message-control-button icon-vector-font" <a class="message-control-button icon-vector-font"
title="{{ _('Formatting') }}" data-overlay-trigger="markdown-help"></a> title="{{ _('Formatting') }}" data-overlay-trigger="markdown-help"></a>
<a class="message-control-button icon-vector-dropbox notdisplayed" <a class="message-control-button icon-vector-dropbox notdisplayed"
id="attach_dropbox_files" href="#" title="{{ _('Attach files from Dropbox') }}"></a> id="attach_dropbox_files" href="#" title="{{ _('Attach files from Dropbox') }}"></a>
<a class="message-control-button icon-vector-paper-clip notdisplayed" <a class="message-control-button icon-vector-paper-clip notdisplayed"
id="attach_files" href="#" title="{{ _('Attach files') }}"></a> id="attach_files" href="#" title="{{ _('Attach files') }}"></a>
<a class="message-control-button fa fa-video-camera" <a class="message-control-button fa fa-video-camera"
id="video_link" href="#" title="{{ _('Add video call') }}"></a> id="video_link" href="#" title="{{ _('Add video call') }}"></a>
<a id="undo_markdown_preview" <a id="undo_markdown_preview"
class="message-control-button icon-vector-edit" class="message-control-button icon-vector-edit"
style="display:none;" title="{{ _('Write') }}"></a> style="display:none;" title="{{ _('Write') }}"></a>
<a id="markdown_preview" class="message-control-button icon-vector-eye-open" <a id="markdown_preview" class="message-control-button icon-vector-eye-open"
title="{{ _('Preview') }}"></a> title="{{ _('Preview') }}"></a>
<a class="drafts-link" href="#drafts" title="{{ _('Drafts') }} (d)">{{ _('Drafts') }}</a> <a class="drafts-link" href="#drafts" title="{{ _('Drafts') }} (d)">{{ _('Drafts') }}</a>
<span id="sending-indicator"></span> <span id="sending-indicator"></span>
<div id="send_controls" class="new-style"> <div id="send_controls" class="new-style">
<label id="enter-sends-label" class="compose_checkbox_label"> <label id="enter-sends-label" class="compose_checkbox_label">
<input type="checkbox" id="enter_sends" />{{ _('Press Enter to send') }} <input type="checkbox" id="enter_sends" />{{ _('Press Enter to send') }}
</label> </label>
<button type="submit" id="compose-send-button" class="button small send_message" tabindex="150" title="{{ _('Send') }} (Ctrl + Enter)">{{ _('Send') }}</button> <button type="submit" id="compose-send-button" class="button small send_message" tabindex="150" title="{{ _('Send') }} (Ctrl + Enter)">{{ _('Send') }}</button>
</div> </div>
</div> </div>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</form> </form>
</div> </div>
</div>
</div> </div>
</div>
</div> </div>

View File

@ -107,7 +107,6 @@ def check_html_templates(templates, all_dups):
# Ignore these files since these have not been cleaned yet :/ # Ignore these files since these have not been cleaned yet :/
IGNORE_FILES = [ IGNORE_FILES = [
# Temporarily Avoiding cleaning these to avoid merge conflicts for now. # Temporarily Avoiding cleaning these to avoid merge conflicts for now.
'templates/zerver/compose.html',
'templates/zerver/keyboard_shortcuts.html', 'templates/zerver/keyboard_shortcuts.html',
'templates/zerver/navbar.html', 'templates/zerver/navbar.html',
# zephyr-mirror.html has some whitespace-dependent formatting # zephyr-mirror.html has some whitespace-dependent formatting