mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2025-01-03 14:56:25 -05:00
Ask for confirmation on some user actions when using AJAX
This commit is contained in:
parent
f9673696d5
commit
f31e69b541
@ -135,7 +135,7 @@
|
|||||||
ic-select-from-response="#main"
|
ic-select-from-response="#main"
|
||||||
ic-push-url="true"
|
ic-push-url="true"
|
||||||
ic-on-success="afterPage('{{ own_acct.username }}', 'Settings');"
|
ic-on-success="afterPage('{{ own_acct.username }}', 'Settings');"
|
||||||
ic-indicator="#page-load-indicator"">
|
ic-indicator="#page-load-indicator">
|
||||||
<span class="fa fa-gear"></span>
|
<span class="fa fa-gear"></span>
|
||||||
<span > Settings</span>
|
<span > Settings</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -54,7 +54,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime
|
|||||||
<a class="level-item fa fa-user-times" title="unfollow"
|
<a class="level-item fa fa-user-times" title="unfollow"
|
||||||
href="{% url 'follow' user.id %}"
|
href="{% url 'follow' user.id %}"
|
||||||
ic-post-to="{% url 'follow' user.id %}"
|
ic-post-to="{% url 'follow' user.id %}"
|
||||||
ic-indicator="#user-spinner" ic-replace-target="true">
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
||||||
|
ic-confirm="Unfollow this user?">
|
||||||
<span class="is-hidden">Unfollow</span>
|
<span class="is-hidden">Unfollow</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -73,7 +74,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime
|
|||||||
<a class="level-item fa fa-volume-off" title="mute"
|
<a class="level-item fa fa-volume-off" title="mute"
|
||||||
href="{% url 'mute' user.id %}"
|
href="{% url 'mute' user.id %}"
|
||||||
ic-post-to="{% url 'mute' user.id %}"
|
ic-post-to="{% url 'mute' user.id %}"
|
||||||
ic-indicator="#user-spinner" ic-replace-target="true">
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
||||||
|
ic-confirm="Mute this user?">
|
||||||
<span class="is-hidden">Mute</span>
|
<span class="is-hidden">Mute</span>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -88,7 +90,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime
|
|||||||
<a class="level-item fa fa-ban" title="block"
|
<a class="level-item fa fa-ban" title="block"
|
||||||
href="{% url 'block' user.id %}"
|
href="{% url 'block' user.id %}"
|
||||||
ic-post-to="{% url 'block' user.id %}"
|
ic-post-to="{% url 'block' user.id %}"
|
||||||
ic-indicator="#user-spinner" ic-replace-target="true">
|
ic-indicator="#user-spinner" ic-replace-target="true"
|
||||||
|
ic-confirm="Block this user?">
|
||||||
<span class="is-hidden">Block</span>
|
<span class="is-hidden">Block</span>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user