Add tabs to the user profile
This commit is contained in:
parent
30cfd96e24
commit
99f04893bb
|
@ -799,3 +799,7 @@ figcaption {
|
|||
color: #7765E3;
|
||||
border-bottom: 1px solid #7765E3;
|
||||
}
|
||||
|
||||
.user-summary {
|
||||
margin: 2em 0px;
|
||||
}
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
{% block content %}
|
||||
{% include "users/header" %}
|
||||
|
||||
<div>
|
||||
{{ user.summary | safe }}
|
||||
</div>
|
||||
{% 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=1) }}
|
||||
|
||||
{% if recents | length != 0 %}
|
||||
{% if recents | length != 0 %}
|
||||
<h2>
|
||||
{{ "Latest articles" | _ }}
|
||||
<small><a href="/@/{{ user.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
|
||||
|
|
|
@ -8,7 +8,10 @@
|
|||
{% block content %}
|
||||
{% 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">
|
||||
{% for follower in followers %}
|
||||
<div class="card">
|
||||
|
|
|
@ -15,12 +15,11 @@
|
|||
<span class="badge">{{ "It is you" | _ }}</span>
|
||||
{% endif %}
|
||||
</h1>
|
||||
{% if is_self %}
|
||||
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if is_self %}
|
||||
<a href="/@/{{ user.username }}/edit" class="button inline-block">{{ "Edit your profile" | _ }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if is_remote %}
|
||||
<a class="inline-block button" href="{{ user.ap_url }}" target="_blank">{{ "Open on {{ instance_url }}" | _(instance_url=instance_url) }}</a>
|
||||
{% endif %}
|
||||
|
@ -35,6 +34,7 @@
|
|||
{% endif %}
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue