mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04: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 {
|
||||
background: $primary-color;
|
||||
color: $background-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
.bar-item-no-border {
|
||||
color: $color-light;
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
|
||||
<div id="followers">
|
||||
{% 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;">
|
||||
{{ utils.display_actor_inline(follower, size=80) }}
|
||||
</div>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
{% for (follow_id, follow) in following_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={{follow.id}}">profile</a>
|
||||
<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 }}"/>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<div id="lookup-result" style="margin-top:30px;">
|
||||
{% if data | has_actor_type %}
|
||||
<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">
|
||||
<input type="hidden" name="redirect" value="{{ request.path }}"/>
|
||||
<input type="hidden" name="actor" value="{{ data.id }}"/>
|
||||
|
@ -26,6 +27,7 @@
|
|||
|
||||
|
||||
{{ utils.display_actor_inline(data, size=80) }}
|
||||
|
||||
{% elif data | has_type('Create') %}
|
||||
{{ utils.display_note(data.object, ui=True) }}
|
||||
{% elif data | has_type(['Note', 'Article', 'Video', 'Audio', 'Page', 'Question']) %}
|
||||
|
|
|
@ -316,7 +316,6 @@
|
|||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
<a class="bar-item" href="/admin/profile?actor_id={{actor.id}}">profile</a>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue