mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-02 00:11:02 +00:00
57cf55fecc
Closes #289
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
{% extends "base" %}
|
|
{% import "macros" as macros %}
|
|
|
|
{% block title %}
|
|
{% if user.display_name %}
|
|
{% set name = user.display_name %}
|
|
{% else %}
|
|
{% set name = user.username %}
|
|
{% endif %}
|
|
|
|
{{ name }}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
{% include "users/header" %}
|
|
|
|
{% 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 %}
|
|
<h2>
|
|
{{ "Latest articles" | _ }}
|
|
<small><a href="/@/{{ user.fqn }}/atom.xml" title="Atom feed">{{ macros::feather(name="rss") }}</a></small>
|
|
</h2>
|
|
<div class="cards">
|
|
{% for article in recents %}
|
|
{{ macros::post_card(article=article) }}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if reshares | length != 0 %}
|
|
<h2>{{ "Recently boosted" | _ }}</h2>
|
|
<div class="cards">
|
|
{% for article in reshares %}
|
|
{{ macros::post_card(article=article) }}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock content %}
|