From dea757b4e085c0d38692c769f7b0901d2e17ea8d Mon Sep 17 00:00:00 2001 From: Socks Date: Fri, 16 Feb 2018 05:31:09 +0000 Subject: [PATCH] Added profile fields to profile, as well as verified tags and latest posts --- templates/profile.html | 52 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index f7e5884..55f934b 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -1,10 +1,42 @@ - - - - - $Title$ - - -$END$ - - \ No newline at end of file +{% extends 'layout.html' %} +{% block nav_profile %} active {% endblock %} +{% block content %} +
+
+

{% if user.verified %} {% endif %}{{ user.displayname }} on Tweeder

+

+ {% if user.profile.bio %} + {{ user.profile.bio }} + {% else %} + Tweeder user since 1984 + {% endif %} +

+
+ +
+
+
+

{{ user.displayname }}'s profile

+
+ {% if user.profile.location %} {{ user.profile.location }}
{% endif %} + {% if user.profile.gender %} {{ user.profile.gender }} {% endif %} +
+
+
+
+ {% if posts %} + {% for post in posts if not post.hidden %} +
+
{{ post.poster }} at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} {% if logged_in == post.poster %} {% endif %}
+
+ {{ post.content }} +
+
+ {% endfor %} + {% else %} + No posts found! + {% endif %} +
+
+
+{% endblock %} \ No newline at end of file