Chapter 6

This commit is contained in:
2023-06-03 17:53:32 +02:00
parent 428e022bd4
commit 4dd7d11190
10 changed files with 184 additions and 4 deletions

29
app/templates/user.html Normal file
View File

@@ -0,0 +1,29 @@
{% extends 'base.html' %}
{% block content %}
<table>
<tr valign="top">
<td>
<img src="{{ user.avatar(128) }}" />
</td>
<td>
<h1>User: {{ user.username }}</h1>
{% if user.about_me %}
<p>{{ user.about_me }}</p>
{% endif %}
{% if user.last_seen %}
<p>Last seen on: {{ user.last_seen }}</p>
{% endif %}
</td>
</tr>
</table>
{% if user == current_user %}
<p>
<a href="{{ url_for('edit_profile') }}">Edit your profile</a>
</p>
{% endif %}
<hr />
{% for post in posts %}
{% include '_post.html' %}
{% endfor %}
{% endblock %}