init
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<section id="notifications_widget">
|
||||
{% if requests %}
|
||||
<ul class="list">
|
||||
<li class="subheader">
|
||||
<div>
|
||||
<p>{{ __('invitations.received') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul id="notifications_invitations" class="list middle spaced">{% for value in requests %}<li id="invitation-{{ value.jid|cleanupId }}" data-jid="{{ value.jid }}">
|
||||
<span class="primary icon bubble active" onclick="ChatActions_ajaxGetContact('{{ value.jid|echapJS }}');">
|
||||
<img src="{{ value.picture }}">
|
||||
</span>
|
||||
<span class="control icon green active" title="{{ __('button.accept') }}" onclick="Notifications_ajaxAccept('{{ value.jid|echapJS }}');">
|
||||
<i class="material-symbols">check</i>
|
||||
</span>
|
||||
<span class="control icon red active" title="{{ __('button.refuse') }}" onclick="Notifications_ajaxRefuse('{{ value.jid|echapJS }}');">
|
||||
<i class="material-symbols">close</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">
|
||||
{{ __('invitations.adds_you', value.truename) }}
|
||||
</p>
|
||||
<p class="line">{{ value.jid }}</p>
|
||||
</div>
|
||||
</li>{% endfor %}</ul>
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">person_add</i>
|
||||
<h4>{{ __('invitations.no_new') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if subscriptions %}
|
||||
<ul class="list">
|
||||
<li class="subheader">
|
||||
<div>
|
||||
<p>{{ __('subscription.nil') }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul id="notifications_subscriptions" class="list spaced">{% for value in subscriptions %}<li id="invitation-{{ value.jid|cleanupId }}" data-jid="{{ value.jid }}">
|
||||
<span class="primary icon bubble active" onclick="ChatActions_ajaxGetContact('{{ value.jid|echapJS }}');">
|
||||
<img src="{{ value.picture }}">
|
||||
</span>
|
||||
{% if value.ask == 'subscribe' %}
|
||||
<span class="control icon gray disabled" title="{{ __('room.invited') }}">
|
||||
<i class="material-symbols">chat_paste_go</i>
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="control icon gray active" title="{{ __('button.add') }}" onclick="Notifications_ajaxAddAsk('{{ value.jid|echapJS }}'); Drawer.clear();">
|
||||
<i class="material-symbols">add</i>
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class="control icon gray active" title="{{ __('button.delete') }}" onclick="Notifications_ajaxDeleteContact('{{ value.jid|echapJS }}'); Drawer.clear();">
|
||||
<i class="material-symbols">delete</i>
|
||||
</span>
|
||||
<div>
|
||||
<p class="line">
|
||||
{{ value.truename }}
|
||||
</p>
|
||||
<p class="line">{{ value.jid }}</p>
|
||||
</div>
|
||||
</li>{% endfor %}</ul>
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">person_check</i>
|
||||
<h4>{{ __('invitations.no_subscriptions') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if not requests and not subscriptions %}
|
||||
<div class="placeholder">
|
||||
<i class="material-symbols">notifications</i>
|
||||
<h4>{{ __('invitations.no_new') }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
Reference in New Issue
Block a user