init
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<section id="chat_actions">
|
||||
<ul class="list" id="message_preview">
|
||||
{{ preview|safe }}
|
||||
{% if reactions %}
|
||||
<li class="reactions">
|
||||
<div>
|
||||
<p class="all">{% for r in reactions %}<a class="chip" href="#" title="{{ r.from|implodeCsv }}">{{ r.emoji|addEmojis(true) }}{{ r.from|implodeCsv }}</a>{% endfor %}</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul class="list divided active middle">
|
||||
{% if not message.encrypted %}
|
||||
<li onclick="Stickers_ajaxReaction({{ message.mid }}); Dialog_ajaxClear()">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">add_reaction</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('message.react') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
onclick="MovimUtils.copyToClipboard(MovimUtils.decodeHTMLEntities(ChatActions.message.body)); ChatActions_ajaxCopiedMessageText(); Dialog_ajaxClear()">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">content_copy</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('chatactions.copy_text') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li onclick="Chat_ajaxHttpDaemonReply({{ message.mid }}); Dialog_ajaxClear()">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">reply</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('button.reply') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
{% if editable %}
|
||||
<li onclick="Chat_ajaxEdit({{ message.mid }}); Dialog_ajaxClear();">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">edit</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('button.edit') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if mine %}
|
||||
<li onclick="ChatActions_ajaxHttpDaemonRetract({{ message.mid }})">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">delete</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('message.retract') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if moderator %}
|
||||
<li class="subheader">
|
||||
<div>
|
||||
<p>{{ __('page.administration') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li onclick="ChatActions_ajaxHttpDaemonModerate({{ message.mid }})">
|
||||
<span class="primary icon gray">
|
||||
<i class="material-symbols">delete</i>
|
||||
</span>
|
||||
<div>
|
||||
<p>{{ __('message.retract') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</section>
|
||||
<footer>
|
||||
<button onclick="Dialog_ajaxClear()" class="button flat">
|
||||
{{ __('button.close') }}
|
||||
</button>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user