Add more profile links

This commit is contained in:
Thomas Sileo 2019-08-27 23:02:19 +02:00
parent 6161da4210
commit 885af6ae6e
5 changed files with 9 additions and 1 deletions

View file

@ -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;

View file

@ -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>

View file

@ -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 }}"/>

View file

@ -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']) %}

View file

@ -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 %}