mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Tweak the UI
This commit is contained in:
parent
376de7b23a
commit
0dd5588faa
1 changed files with 5 additions and 7 deletions
|
@ -60,7 +60,7 @@
|
||||||
{% if not perma %}
|
{% if not perma %}
|
||||||
<span style="float:right;width: 25%;text-align: right;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;display: block;">
|
<span style="float:right;width: 25%;text-align: right;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;display: block;">
|
||||||
<a rel="noopener" class="u-url u-uid note-permalink l" href="{{ obj | url_or_id | get_url }}">
|
<a rel="noopener" class="u-url u-uid note-permalink l" href="{{ obj | url_or_id | get_url }}">
|
||||||
<time class="dt-published" title="{{ obj.published }}" datetime="{{ obj.published }}">{{ obj.published | format_timeago }}</time></a>
|
<time class="dt-published" title="{{ obj.published }}" datetime="{{ obj.published }}" {% if obj | url_or_id | is_from_outbox %}{%else%}rel="external noreferrer"{%endif%}>{{ obj.published | format_timeago }}</time></a>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -316,18 +316,16 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<form action="/api/block" class="action-form" method="POST">
|
|
||||||
<input type="hidden" name="redirect" value="{{ redir }}">
|
|
||||||
<input type="hidden" name="actor" value="{{ actor.id }}">
|
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
||||||
<button type="submit" class="bar-item" onclick="return confirm('Confirm the block action?');">block</button>
|
|
||||||
</form>
|
|
||||||
<a class="bar-item" href="/admin/profile?actor_id={{actor.id}}">profile</a>
|
<a class="bar-item" href="/admin/profile?actor_id={{actor.id}}">profile</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if obj | url_or_id | is_from_outbox %}
|
||||||
<a class="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
|
<a class="bar-item" href="{{ obj | url_or_id | get_url }}">permalink</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="bar-item" href="{{ obj | url_or_id | get_url }}" rel="external noreferrer">source</a>
|
||||||
|
{% endif %}
|
||||||
{% if session.logged_in %}
|
{% if session.logged_in %}
|
||||||
<a class="bar-item bar-item-no-border">{{ meta.object_visibility | visibility }}</a>
|
<a class="bar-item bar-item-no-border">{{ meta.object_visibility | visibility }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue