Adding profiles and adminship

This commit is contained in:
Yusur 2019-10-17 14:34:55 +02:00
parent 156d58e549
commit 32e7c37158
7 changed files with 133 additions and 16 deletions

View file

@ -1,13 +1,7 @@
{% extends "base.html" %}
{% block body %}
{% include "includes/infobox_profile.html" %}
<h2>Messages from {{ user.username }}</h2>
<p>
<strong>{{ user.messages|count }}</strong> messages
-
<strong>{{ user.followers()|count }}</strong> followers
-
<strong>{{ user.following()|count }}</strong> following
</p>
{% if not current_user.is_anonymous %}
{% if user.username != current_user.username %}
{% if current_user|is_following(user) %}
@ -21,8 +15,7 @@
{% endif %}
<p><a href="/create/?preload=%2B{{ user.username }}">Mention this user in a message</a></p>
{% else %}
<!-- here should go the "edit profile" button -->
<a href="/create/">Create a status</a>
<a href="/create/">Create a message</a>
{% endif %}
{% endif %}
<ul>