mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 18:54:27 +00:00
Add more profile links
This commit is contained in:
parent
6161da4210
commit
885af6ae6e
5 changed files with 9 additions and 1 deletions
|
@ -284,6 +284,7 @@ a:hover {
|
||||||
.bar-item:hover {
|
.bar-item:hover {
|
||||||
background: $primary-color;
|
background: $primary-color;
|
||||||
color: $background-color;
|
color: $background-color;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.bar-item-no-border {
|
.bar-item-no-border {
|
||||||
color: $color-light;
|
color: $color-light;
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
|
|
||||||
<div id="followers">
|
<div id="followers">
|
||||||
{% for follower in followers_data %}
|
{% for follower in followers_data %}
|
||||||
|
{% if session.logged_in %}
|
||||||
|
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
||||||
|
<a class="bar-item" href="/admin/profile?actor_id={{follower.id}}">profile</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div style="height: 100px;">
|
<div style="height: 100px;">
|
||||||
{{ utils.display_actor_inline(follower, size=80) }}
|
{{ utils.display_actor_inline(follower, size=80) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
{% for (follow_id, follow) in following_data %}
|
{% for (follow_id, follow) in following_data %}
|
||||||
{% if session.logged_in %}
|
{% if session.logged_in %}
|
||||||
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
<div style="margin-left:90px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
||||||
|
<a class="bar-item" href="/admin/profile?actor_id={{follow.id}}">profile</a>
|
||||||
<form action="/api/undo" class="action-form" method="post">
|
<form action="/api/undo" class="action-form" method="post">
|
||||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||||
<input type="hidden" name="id" value="{{ follow_id }}"/>
|
<input type="hidden" name="id" value="{{ follow_id }}"/>
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<div id="lookup-result" style="margin-top:30px;">
|
<div id="lookup-result" style="margin-top:30px;">
|
||||||
{% if data | has_actor_type %}
|
{% if data | has_actor_type %}
|
||||||
<div style="margin-left:95px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
<div style="margin-left:95px;padding-bottom:5px;margin-bottom:15px;display:inline-block;">
|
||||||
|
<a class="bar-item" href="/admin/profile?actor_id={{data.id}}">profile</a>
|
||||||
<form action="/api/follow" class="action-form" method="POST">
|
<form action="/api/follow" class="action-form" method="POST">
|
||||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||||
<input type="hidden" name="actor" value="{{ data.id }}"/>
|
<input type="hidden" name="actor" value="{{ data.id }}"/>
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
{{ utils.display_actor_inline(data, size=80) }}
|
{{ utils.display_actor_inline(data, size=80) }}
|
||||||
|
|
||||||
{% elif data | has_type('Create') %}
|
{% elif data | has_type('Create') %}
|
||||||
{{ utils.display_note(data.object, ui=True) }}
|
{{ utils.display_note(data.object, ui=True) }}
|
||||||
{% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page', 'Question']) %}
|
{% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page', 'Question']) %}
|
||||||
|
|
|
@ -316,7 +316,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="bar-item" href="/admin/profile?actor_id={{actor.id}}">profile</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue