2021-06-10 16:52:29 +02:00
<div id="compose-content">
<div id="compose_controls" class="new-style">
2021-04-14 13:10:34 +02:00
<div id="compose_buttons">
2021-04-15 02:59:34 +02:00
<span class="new_message_button reply_button_container">
2021-05-10 21:52:57 +02:00
<button type="button" class="button small rounded compose_reply_button"
2021-04-15 02:59:34 +02:00
id="left_bar_compose_reply_button_big"
2021-06-04 17:49:50 +02:00
title=" {{ t 'Reply to selected message' }} (r)">
2021-05-10 17:21:20 +02:00
<span class="compose_reply_button_label"> {{ t 'Compose message' }} </span>
2021-04-15 02:59:34 +02:00
</button>
</span>
<span class="new_message_button mobile_button_container">
2021-04-14 13:10:34 +02:00
<button type="button" class="button small rounded compose_mobile_button"
id="left_bar_compose_mobile_button_big"
title=" {{ t 'New message' }} (c)">
<span>+</span>
</button>
</span>
2021-04-15 02:59:34 +02:00
<span class="new_message_button stream_button_container">
2021-04-14 13:10:34 +02:00
<button type="button" class="button small rounded compose_stream_button"
id="left_bar_compose_stream_button_big"
title=" {{ t 'New topic' }} (c)">
<span class="compose_stream_button_label"> {{ t 'New topic' }} </span>
</button>
</span>
{{ # unless embedded }}
2021-04-15 02:59:34 +02:00
<span class="new_message_button private_button_container">
2021-04-14 13:10:34 +02:00
<button type="button" class="button small rounded compose_private_button"
id="left_bar_compose_private_button_big"
title=" {{ t 'New private message' }} (x)">
<span class="compose_private_button_label"> {{ t 'New private message' }} </span>
</button>
</span>
{{ / unless }}
2021-06-21 00:52:53 +02:00
<span class="new_message_button only-visible-for-spectators">
2021-05-19 13:50:52 +02:00
<a class="no-underline button small rounded float-left" href="/login">
{{ t 'Log in to send messages' }}
</a>
</span>
2021-04-14 13:10:34 +02:00
</div>
</div>
2021-06-10 16:52:29 +02:00
<div class="message_comp">
2021-04-14 13:10:34 +02:00
<div class="alert" id="compose-send-status">
<span class="compose-send-status-close">×</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_not_subscribed" 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">
2021-05-17 13:15:11 +02:00
<div id="compose_top_right">
<button type="button" class="expand_composebox_button fa fa-angle-up" aria-label=" {{ t 'Expand compose' }} " tabindex=0 title=" {{ t 'Expand compose' }} "></button>
<button type="button" class="collapse_composebox_button fa fa-angle-down" aria-label=" {{ t 'Collapse compose' }} " tabindex=0 title=" {{ t 'Collapse compose' }} "></button>
<button type="button" class="close" id='compose_close' title=" {{ t 'Cancel compose' }} (Esc)">×</button>
</div>
2021-04-14 13:10:34 +02:00
<form id="send_message_form" action="/json/messages" method="post">
{{ csrf_input }}
<div class="compose_table">
<div id="stream-message">
<div class="stream-selection-header-colorblock message_header_stream left_part"></div>
<div class="right_part">
<span id="compose-lock-icon">
<i class="fa fa-lock" title=" {{ t 'This is a private stream' }} " aria-hidden="true"></i>
</span>
<input type="text" class="recipient_box" name="stream_message_recipient_stream" id="stream_message_recipient_stream" maxlength="30" value="" placeholder=" {{ t 'Stream' }} " autocomplete="off" tabindex="0" aria-label=" {{ t 'Stream' }} " />
<i class="fa fa-angle-right" aria-hidden="true"></i>
<input type="text" class="recipient_box" name="stream_message_recipient_topic" id="stream_message_recipient_topic" maxlength="60" value="" placeholder=" {{ t 'Topic' }} " autocomplete="off" tabindex="0" aria-label=" {{ t 'Topic' }} " />
</div>
</div>
<div id="private-message">
<div class="to_text">
<span> {{ t 'To' }} :</span>
</div>
<div class="right_part">
<div class="pm_recipient">
<div class="pill-container" data-before=" {{ t 'You and' }} ">
<div class="input" contenteditable="true" id="private_message_recipient" data-no-recipients-text=" {{ t 'Add one or more users' }} " data-some-recipients-text=" {{ t 'Add another user...' }} "></div>
</div>
</div>
</div>
</div>
2021-05-17 13:15:11 +02:00
<div class="messagebox-wrapper">
2021-04-14 13:10:34 +02:00
<div class="messagebox">
2021-07-07 12:13:19 +02:00
<textarea class="new_message_textarea" name="content" id='compose-textarea' placeholder=" {{ t 'Compose your message here' }} " tabindex="0" aria-label=" {{ t 'Compose your message here...' }} "></textarea>
2021-04-14 13:10:34 +02:00
<div class="scrolling_list preview_message_area" data-simplebar id="preview_message_area" style="display:none;">
2021-04-20 19:50:01 +02:00
<div class="markdown_preview_spinner"></div>
<div class="preview_content rendered_markdown"></div>
2021-04-14 13:10:34 +02:00
</div>
<div class="drag"></div>
<div id="below-compose-content">
2021-06-24 11:59:35 +02:00
<button type="submit" id="compose-send-button" class="button small send_message animated-purple-button" title=" {{ t 'Send' }} (Ctrl + Enter)"> {{ t 'Send' }} </button>
2021-04-14 21:31:56 +02:00
{{ > compose_control_buttons }}
2021-04-14 13:10:34 +02:00
<span id="sending-indicator"></span>
<div id="send_controls" class="new-style">
<label id="enter-sends-label" class="compose_checkbox_label checkbox">
<input type="checkbox" id="enter_sends" />
<span></span> {{ t 'Press Enter to send' }}
</label>
</div>
2021-07-07 12:13:19 +02:00
<span id="compose_limit_indicator"></span>
2021-04-14 13:10:34 +02:00
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>