Added profile fields to profile, as well as verified tags and latest posts
This commit is contained in:
parent
e0869b1e25
commit
dea757b4e0
1 changed files with 42 additions and 10 deletions
|
@ -1,10 +1,42 @@
|
||||||
<!DOCTYPE html>
|
{% extends 'layout.html' %}
|
||||||
<html lang="en">
|
{% block nav_profile %} active {% endblock %}
|
||||||
<head>
|
{% block content %}
|
||||||
<meta charset="UTF-8">
|
<div class="container">
|
||||||
<title>$Title$</title>
|
<div class="jumbotron">
|
||||||
</head>
|
<h1>{% if user.verified %} <i class="fas fa-shield-check" alt="Verified"></i> {% endif %}{{ user.displayname }} <small>on Tweeder</small></h1>
|
||||||
<body>
|
<h2>
|
||||||
$END$
|
{% if user.profile.bio %}
|
||||||
</body>
|
{{ user.profile.bio }}
|
||||||
</html>
|
{% else %}
|
||||||
|
Tweeder user since 1984
|
||||||
|
{% endif %}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-6 col-md-4">
|
||||||
|
<div class="card">
|
||||||
|
<h4 class="card-header">{{ user.displayname }}'s profile</h4>
|
||||||
|
<div class="card-body">
|
||||||
|
{% if user.profile.location %} <i class="far fa-fw fa-map-marker"></i> {{ user.profile.location }} <br>{% endif %}
|
||||||
|
{% if user.profile.gender %} <i class="far fa-fw fa-transgender-alt"></i> {{ user.profile.gender }} {% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-sm-6 col-md-8" style="float: right;">
|
||||||
|
{% if posts %}
|
||||||
|
{% for post in posts if not post.hidden %}
|
||||||
|
<div class="card" style="word-wrap: break-word; margin-bottom: 16px; width: 100%;">
|
||||||
|
<div class="card-header"><b>{{ post.poster }}</b> at {{ post.timePosted.strftime('%Y-%m-%d %-H:%M') }} {% if logged_in == post.poster %} <span style="float: right"><a href="/reply/{{ post._id }}" class="btn btn-primary btn-sm"><i class="far fa-reply"></i></a> <a href="/delete/{{ post._id }}" class="btn btn-danger btn-sm"><i class="far fa-trash-alt"></i></a></span>{% endif %}</div>
|
||||||
|
<div class="card-body">
|
||||||
|
{{ post.content }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<b>No posts found!</b>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
Add table
Reference in a new issue