mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 05:21:00 +00:00
Add tabs to the user profile
This commit is contained in:
parent
30cfd96e24
commit
99f04893bb
4 changed files with 18 additions and 11 deletions
|
@ -799,3 +799,7 @@ figcaption {
|
||||||
color: #7765E3;
|
color: #7765E3;
|
||||||
border-bottom: 1px solid #7765E3;
|
border-bottom: 1px solid #7765E3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-summary {
|
||||||
|
margin: 2em 0px;
|
||||||
|
}
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "users/header" %}
|
{% include "users/header" %}
|
||||||
|
|
||||||
<div>
|
{% set user_link = ['/@', user.fqn] %}
|
||||||
{{ user.summary | safe }}
|
{% set followers_link = ['/@', user.fqn, 'followers'] %}
|
||||||
</div>
|
{{ macros::tabs(links=[ user_link | join(sep='/'), followers_link | join(sep='/')], titles=['Articles', 'Followers'], selected=1) }}
|
||||||
|
|
||||||
{% if recents | length != 0 %}
|
{% if recents | length != 0 %}
|
||||||
<h2>
|
<h2>
|
||||||
{{ "Latest articles" | _ }}
|
{{ "Latest articles" | _ }}
|
||||||
<small><a href="/@/{{ user.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
|
<small><a href="/@/{{ user.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "users/header" %}
|
{% include "users/header" %}
|
||||||
|
|
||||||
<h2>{{ "Followers" | _ }}</h2>
|
{% set user_link = ['/@', user.fqn] %}
|
||||||
|
{% set followers_link = ['/@', user.fqn, 'followers'] %}
|
||||||
|
{{ macros::tabs(links=[ user_link | join(sep='/'), followers_link | join(sep='/')], titles=['Articles', 'Followers'], selected=2) }}
|
||||||
|
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{% for follower in followers %}
|
{% for follower in followers %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
|
@ -15,12 +15,11 @@
|
||||||
<span class="badge">{{ "It is you" | _ }}</span>
|
<span class="badge">{{ "It is you" | _ }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
|
{% if is_self %}
|
||||||
|
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if is_self %}
|
|
||||||
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if is_remote %}
|
{% if is_remote %}
|
||||||
<a class="inline-block button" href="{{ user.ap_url }}" target="_blank">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
<a class="inline-block button" href="{{ user.ap_url }}" target="_blank">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -35,6 +34,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="/@/{{ user.fqn }}/followers/">{{ "{{ count }} followers" | _n(singular="One follower", count=n_followers) }}</a>
|
<div class="user-summary">
|
||||||
|
{{ user.summary | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue