Adding profiles and adminship
This commit is contained in:
parent
156d58e549
commit
32e7c37158
7 changed files with 133 additions and 16 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue