Tweak the admin UI
This commit is contained in:
@@ -8,7 +8,18 @@
|
||||
{% include "header.html" %}
|
||||
|
||||
<div id="following">
|
||||
{% for followed in following_data %}
|
||||
{% for (follow_id, followed) in following_data %}
|
||||
{% if session.logged_in %}
|
||||
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;">
|
||||
<form action="/api/undo" class="action-form" method="POST">
|
||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||
<input type="hidden" name="id" value="{{ follow_id }}"/>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<button type="submit" class="bar-item">unfollow</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
<div style="height: 100px;">
|
||||
{{ utils.display_actor_inline(followed, size=80) }}
|
||||
</div>
|
||||
|
@@ -65,18 +65,19 @@
|
||||
<a class ="bar-item" href="{{ obj.url }}">permalink</a>
|
||||
|
||||
{% if meta.count_reply %}<a class ="bar-item" href="{{ obj.url }}"><strong>{{ meta.count_reply }}</strong> replies</a>{% endif %}
|
||||
{% if meta.count_boost %}<a class ="bar-item" href="{{ obj.url }}"><strong>{{ meta.count_boost }}</strong> boosts</a>{% endif %}
|
||||
{% if meta.count_like %}<a class ="bar-item" href="{{ obj.url }}"><strong>{{ meta.count_like }}</strong> likes</a>{% endif %}
|
||||
{% if meta.count_boost and obj.id | is_from_outbox %}<a class ="bar-item" href="{{ obj.url }}"><strong>{{ meta.count_boost }}</strong> boosts</a>{% endif %}
|
||||
{% if meta.count_like and obj.id | is_from_outbox %}<a class ="bar-item" href="{{ obj.url }}"><strong>{{ meta.count_like }}</strong> likes</a>{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if session.logged_in %}
|
||||
{% set perma_id = obj.id | permalink_id %}
|
||||
{% set redir = request.path + "#activity-" + perma_id %}
|
||||
{% set aid = obj.id | quote_plus %}
|
||||
{% endif %}
|
||||
|
||||
{% if ui and session.logged_in %}
|
||||
|
||||
{% set aid = obj.id | quote_plus %}
|
||||
<a class="bar-item" href="/admin/new?reply={{ aid }}">reply</a>
|
||||
|
||||
{% set perma_id = obj.id | permalink_id %}
|
||||
{% set redir = request.path + "#activity-" + perma_id %}
|
||||
|
||||
{% if meta.boosted %}
|
||||
<form action="/api/undo" class="action-form" method="POST">
|
||||
<input type="hidden" name="redirect" value="{{ redir }}">
|
||||
|
Reference in New Issue
Block a user