12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- {% extends "layout.html" %}
- {% block content %}
- <ul class="breadcrumb">
- <li><a href="{{ url_for('forum.index') }}">Forum</a></li>
- <li class="active">{{ user.username }}</li>
- </ul>
- <table class="table table-bordered">
- <thead>
- <th><a href="{{ url_for('user.profile', username=user.username) }}">{{ user.username }}</a></th>
- <th>Info</th>
- <th>User Stats</th>
- </thead>
- <tbody>
- <tr>
- <td width="200px">
- <table class="table table-borderless">
- <tbody>
- {% if user.avatar %}
- <tr><td><img src="{{ user.avatar }}" alt="Avatar" height="100" width="100"> </td></tr>
- {% endif %}
- <!-- TODO: Implement online status -->
- <tr><td><b></b> <span class="label label-success">Online</span></td></tr>
- <tr><td><a href="{{ url_for('user.view_all_topics', username=user.username) }}">All Topics</a></td></tr>
- <tr><td><a href="{{ url_for('user.view_all_posts', username=user.username) }}">All Posts</a></td></tr>
- </tbody>
- </table>
- </td>
- <td>
- {% if user.notes %}
- {% autoescape false %}
- {{ user.notes }}
- {% endautoescape %}
- {% else %}
- User has not added any notes about him.
- {% endif %}
- </td>
- <td width="250px">
- <table class="table table-borderless">
- <tbody>
- <tr>
- <td align="right">Group:</td>
- <td>{{ user.primary_group.name }}</td>
- </tr>
- <tr>
- <td align="right">Joined:</td>
- <td>{{ user.date_joined|format_date('%b %d %Y') }}</td>
- </tr>
- <tr>
- <td align="right">Posts:</td>
- <td>{{ user.post_count }} ({{ posts_per_day }} per day)</td>
- </tr>
- <tr>
- <td align="right">Last seen:</td>
- <td>{%- if user.lastseen -%} {{ user.lastseen|time_since }} {%- else -%} Never seen {%- endif -%}</td>
- </tr>
- <tr>
- <td align="right">Last post:</td>
- <td>{%- if user.last_post -%}
- <a href="{{ url_for('forum.view_post', post_id=user.last_post.id) }}">{{ user.last_post.date_created|time_since }}</a>
- {%- else -%}
- Never
- {%- endif -%}
- </td>
- </tr>
- <tr>
- <td align="right">Online time:</td>
- <td><b>TODO: </b>1024 hours</td>
- </tr>
- <tr>
- <td align="right">Location:</td>
- <td>{%- if user.location -%} {{ user.location }} {%- else -%} No Info {%- endif -%}</td>
- </tr>
- <tr>
- <td align="right">Birthday:</td>
- <td>{% if user.birthday %} {{ user.birthday|format_date('%b %d %Y') }} {% else %} No Info {% endif %} {% if user.gender %} ({{ user.gender }}) {% endif %}</td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- {% endblock %}
|