{%- from 'common/macros.html' import subheader, timestamp, pager -%} {%- extends 'base.html' -%} {%- block title -%}{{ target_user.get_readable_name() }}'s profile{%- endblock -%} {%- set stats = target_user.get_post_stats() -%} {%- block content -%} {%- call() subheader("%s's profile" % target_user.get_readable_name()) -%} {%- if is_logged_in() -%} {%- if target_user.id == get_active_user().id -%}
Actions
{%- endif -%} {%- if get_active_user().is_mod() and target_user.id != get_active_user().id -%}
Moderation actions
{%- if target_user.is_guest() -%} {%- else -%} {%- if get_active_user().is_admin() -%} {%- if not target_user.is_mod_only() -%} {%- else -%} {%- endif -%} {%- endif -%} {%- endif -%}
{%- endif -%} {%- endif -%} {%- endcall -%}

{{target_user.get_readable_name()}}

Display name: {{target_user.get_readable_name()}} Mention: @{{target_user.username}} Status: {{target_user.status}} Rank: {{target_user.permission | permission_string}} {%- set time = target_user.created_at -%} {%- if target_user.approved_at -%} {%- set time = target_user.approved_at -%} {%- endif -%} Joined: {{timestamp(target_user.created_at)}} {%- if not target_user.is_guest() -%} Posts: {{stats.post_count}} Threads started: {{stats.thread_count}} {%- set badges = target_user.get_badges() -%} {%- if badges -%}
Badges: {%- for badge in badges -%} {%- if badge.link -%}{%- endif -%} {{badge.label}} {%- if badge.link -%}{%- endif -%} {%- endfor -%}
{%- endif -%}
About me

stub

{%- if target_user.signature_rendered -%}
Signature {{target_user.signature_rendered | safe}}
{%- endif -%} {#
Profile comments
Page {{pager(0, 3, url=url_for('users.log_in'))}}

stub

#} {%- endif -%}
{%- endblock -%}