X-Git-Url: http://git.datanom.net/flask-test.git/blobdiff_plain/db4f0ba9d4aec596f179335f1d86b3dd2bb206c6..163c4d87c8cefd45e8c8836daa28c53956be1e1a:/app/templates/user.html diff --git a/app/templates/user.html b/app/templates/user.html index 7e76e61..7cef105 100644 --- a/app/templates/user.html +++ b/app/templates/user.html @@ -2,25 +2,37 @@ {% extends "base.html" %} {% block content %} - - - - - -
-

User: {{ user.nickname }}

- {% if user.about_me %} -

{{ user.about_me }}

- {% endif %} - {% if user.last_seen %} -

Last seen on: {{ user.last_seen }}

- {% endif %} - {% if user.id == g.user.id %} -

Edit

- {% endif %} -
-
- {% for post in posts %} - {% include 'post.html' %} - {% endfor %} + {% include 'flash.html' %} +
+
+ +
+

{{ user.nickname }}

+ {% if user.about_me %}

{{ user.about_me }}

{% endif %} + {% if user.last_seen %}

Last seen: {{ momentjs(user.last_seen).calendar() }}

{% endif %} +

Followers: {{ user.followers.count() - 1 }} | Following: {{ user.followed.count() - 1 }} | + {% if user.id == g.user.id %} + Edit your profile + {% elif not g.user.is_following(user) %} + Follow + {% else %} + Unfollow + {% endif %} +

+
+ {% for post in posts.items %} + {% include 'post.html' %} + {% endfor %} + {% endblock %}