More UI tweaks/bugfixes

This commit is contained in:
Thomas Sileo
2019-10-20 16:00:02 +02:00
parent ae12ade432
commit e265704e03
5 changed files with 19 additions and 5 deletions

View File

@@ -126,18 +126,18 @@
{% for item in inbox_data %}
{% if 'actor' in item.meta %}
{% if item | has_type('Create') %}
{% if request.path.startswith("/admin/notifications") and not item.meta.reply_acked and item.meta.object_visibility | visibility_is_public %}
<div style="margin-left:70px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
{% if request.path.startswith("/admin/notifications") and not item.meta.reply_acked and item.meta.object_visibility | visibility_is_public %}
<form action="/api/ack_reply" class="action-form" method="POST">
<input type="hidden" name="redirect" value="{{ request.path }}"/>
<input type="hidden" name="reply_iri" value="{{ item.meta.object_id }}"/>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<button type="submit" class="bar-item">ack reply</button>
</form>
{{ utils.display_in_reply_to(item.meta, item.activity.object) }}
</div>
{% endif %}
{{ utils.display_in_reply_to(item.meta, item.activity.object) }}
</div>
{{ utils.display_note(item.activity.object, meta=item.meta) }}
{% else %}
{% if item | has_type('Announce') %}