1
0
forked from finn/site

mgt c6 checkpoint 2.2

This commit is contained in:
2024-08-03 04:59:05 -07:00
parent cdebe081c3
commit 2b122f6ab2
11 changed files with 100 additions and 55 deletions

View File

@ -4,9 +4,16 @@
<table>
<tr valign="top">
<td><img src="data:image/png;base64,{{ user.gen_avatar(write_png=False) }}"></td>
<td><h1>User: {{ user.username }}</h1></td>
<td>
<h1>User: {{ user.username }}</h1>
{% if user.about_me %}<p>{{ user.about_me }}</p>{% endif %}
{% if user.last_seen %}<p>Last activity:{{ user.last_seen }}</p>{% endif %}
</td>
</tr>
</table>
{% if user == current_user() %}
<p><a href="{{ url_for('edit_profile') }}">Edit Profile</a></p>
{% endif %}
<hr>
{% for post in posts %}
{% include '_post.html' %}