blob: f52e7c13495efcb2e0da0a808cb37f5649c6191e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{% from 'common.html' import disp_post,ts,tag,thread_breadcrumb,pagination_nav %}
{% extends 'base.html' %}
{% block header %}
<h1>{%block title %}{{user.username|e}}{% endblock %}</h1>
{% endblock %}
{%block content%}
<div class="user-top-bar">
{% if g.user == user.username %}
<a class="actionbutton" href="{{url_for('user.edit_user',username=user.username)}}">settings</a>
{% endif %}
</div>
<div class="user_info">
<div class="user_bio_quote">
<div class="user_bio">{{(user.bio or "hail GEORGE")|md|safe}}</div>
<p class="user_bio_attribution">— {{user.username|e}}</p>
</div>
<dl>
<dt>joined</dt>
{% if user.joined %}
<dd>{{ts(user.joined)}} ago</dd>
{% else %}
<dd>a very long time ago</dd>
{% endif %}
</dl>
</div>
{% if posts %}
<h2>recent posts</h2>
{{ pagination_nav(page,max_pageno,'user.view_user', username=user.username) }}
<div class="user_posts">
{% for post in posts %}
{{ disp_post(post, False) }}
{% endfor %}
</div>
{% endif %}
{% endblock %}
|