init
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
{% if muc %}
|
||||
<nav class="spin" id="{{ jid|cleanupId }}-nav"></nav>
|
||||
<div id="chat_conference_call" class="spin"></div>
|
||||
{% endif %}
|
||||
|
||||
<header id="{{ jid|cleanupId }}-header">
|
||||
{{ header|safe }}
|
||||
</header>
|
||||
|
||||
<div id="{{ jid|cleanupId }}-discussion" class="contained {% if muc %}muc{% endif %}">
|
||||
<section id="{{ jid|cleanupId }}-messages">
|
||||
<div class="placeholder first_messages">
|
||||
<i class="material-symbols fill">waving_hand</i>
|
||||
<h1>{{ __('chat.first_messages_title') }}</h1>
|
||||
{% if not muc %}
|
||||
<h4 style="margin-bottom: 1rem;">{{ __('chat.first_messages_text') }}</h4>
|
||||
<h4>
|
||||
<button class="button color" onclick="Notifications_ajaxAddAsk('{{ jid|echapJS }}')">
|
||||
<i class="material-symbols">add</i> {{ __('chat.first_messages_add') }}
|
||||
</button>
|
||||
<button class="button flat" onclick="ChatActions_ajaxBlock('{{ jid|echapJS }}'); Notifications_ajaxRefuse('{{ jid|echapJS }}');">
|
||||
{{ __('chat.first_messages_block') }}
|
||||
</button>
|
||||
</h4>
|
||||
{% endif %}
|
||||
</div>
|
||||
<ul class="list spin conversation" id="{{ jid|cleanupId }}-conversation"></ul>
|
||||
<ul class="list state" id="{{ jid|cleanupId }}-state"></ul>
|
||||
<div class="placeholder empty">
|
||||
<i class="material-symbols fill">chat</i>
|
||||
<h1>{{ __('chat.new_title') }}</h1>
|
||||
<h4>{{ __('chat.new_text') }}</h4>
|
||||
<h4>{{ __('message.edit_help') }}</h4>
|
||||
<h4>{{ __('message.emoji_help') }}</h4>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="chat_box {% if visitor %}disabled{% endif %}">
|
||||
<button id="scroll_now" class="button action color small" onclick="Chat_ajaxClearAndGetMessages('{{ jid|echapJS }}', {% if muc %}true{% endif %})">
|
||||
<i class="material-symbols">clock_arrow_down</i>
|
||||
</button>
|
||||
<button id="scroll_down" class="button action color transparent small" onclick="Chat.scrollTotally()">
|
||||
<i class="material-symbols">expand_more</i>
|
||||
</button>
|
||||
<ul class="list fill">
|
||||
<div id="reply"></div>
|
||||
<ul class="list middle" id="embed"></ul>
|
||||
<div id="dictaphone"></div>
|
||||
<li class="emojis"></li>
|
||||
<li class="main">
|
||||
<span class="primary icon gray active"
|
||||
title="{{ __('emojisconfig.title') }}"
|
||||
onclick="Stickers_ajaxReaction(null)">
|
||||
<a href="#" onclick="listIconClick(event);">
|
||||
<i class="material-symbols">emoji_emotions</i>
|
||||
</a>
|
||||
</span>
|
||||
{% if upload %}
|
||||
<span class="emojis control icon gray active"
|
||||
id="dictaphone_toggle"
|
||||
title="{{ __('dictaphone.name') }}"
|
||||
onclick="Dictaphone.toggle()">
|
||||
<a href="#" onclick="listIconClick(event);">
|
||||
<i class="material-symbols">mic</i>
|
||||
</a>
|
||||
</span>
|
||||
<span class="attach control icon" onclick="Chat.toggleAttach()">
|
||||
<a href="#" onclick="listIconClick(event);">
|
||||
<i class="material-symbols">add_circle</i>
|
||||
</a>
|
||||
</span>
|
||||
<ul class="list active actions">
|
||||
<li onclick="Chat.toggleAttach(); Snap.init()">
|
||||
<span class="control icon gray">
|
||||
<i class="material-symbols">camera_alt</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">Snap</p>
|
||||
</div>
|
||||
</li>
|
||||
<li onclick="Chat.toggleAttach(); Draw_ajaxHttpGet()">
|
||||
<span class="control icon gray">
|
||||
<i class="material-symbols">gesture</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">{{ __('draw.title') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li onclick="Chat.toggleAttach(); Upload_ajaxGetPanel()">
|
||||
<span class="control icon gray">
|
||||
<i class="material-symbols">attach_file</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">{{ __('upload.title') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
<span title="{{ __('button.submit') }}"
|
||||
class="send control icon gray"
|
||||
onclick="Chat.sendMessage()">
|
||||
<a href="#" onclick="listIconClick(event);">
|
||||
<i class="material-symbols">send</i>
|
||||
</a>
|
||||
</span>
|
||||
<form>
|
||||
<div>
|
||||
<textarea
|
||||
dir="auto"
|
||||
rows="1"
|
||||
id="chat_textarea"
|
||||
data-jid="{{ jid }}"
|
||||
data-muc="{% if muc %}true{% endif %}"
|
||||
data-muc-group="{% if group %}true{% endif %}"
|
||||
{% if visitor %}
|
||||
placeholder="{{ __('message.visitor_help') }}"
|
||||
{% elif rand == 1 %}
|
||||
placeholder="{{ __('message.emoji_help') }}"
|
||||
{% else %}
|
||||
placeholder="{{ __('chat.placeholder') }}"
|
||||
{% endif %}
|
||||
{% if visitor %}disabled{% endif %}
|
||||
></textarea>
|
||||
<span class="control icon encrypted" title="{{ __('omemo.encrypted') }}"
|
||||
onclick="ChatOmemo.disableContactState('{{ jid|echapJS }}', {% if muc %}true{% else %}false{% endif %})">
|
||||
<i class="material-symbols fill">lock</i>
|
||||
</span>
|
||||
<span class="control icon encrypted_disabled" title="{{ __('omemo.encrypted_disabled') }}"
|
||||
onclick="ChatOmemo.enableContactState('{{ jid|echapJS }}', {% if muc %}true{% else %}false{% endif %})">
|
||||
<i class="material-symbols">no_encryption</i>
|
||||
</span>
|
||||
<span class="control icon encrypted_loading" title="{{ __('omemo.encrypted_loading') }}"
|
||||
onclick="ChatOmemo.disableContactState('{{ jid|echapJS }}', {% if muc %}true{% else %}false{% endif %})">
|
||||
<i class="material-symbols">lock_clock</i>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user