1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {% extends theme('layout.html') %}
- {% from theme('macros.html') import render_pagination %}
- {% block content %}
- <ul class="breadcrumb">
- <li><a href="{{ url_for('forum.index') }}">{% trans %}Forum{% endtrans %}</a></li>
- <li ><a href="{{ url_for('user.profile', username=user.username) }}">{{ user.username }}</a></li>
- <li class="active">{% trans %}All Topics{% endtrans %}</li>
- </ul>
- <div class="pull-left">
- {{ render_pagination(topics, url_for('user.view_all_topics', username=user.username)) }}
- </div> <!-- end span pagination -->
- <table class="table table-bordered">
- <thead>
- <tr>
- <th colspan="5">
- {% trans %}All Topics created by{% endtrans %} {{ user.username }}
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td colspan="2">{% trans %}Topic{% endtrans %}</td>
- <td>{% trans %}Posts{% endtrans %}</td>
- <td>{% trans %}Views{% endtrans %}</td>
- <td>{% trans %}Last Post{% endtrans %}</td>
- </tr>
- {% for topic in topics.items %}
- <tr>
- <td width="4%"></td>
- <td>
- <div>
- <a href="{{ topic.url }}">{{ topic.title }}</a> <br />
- <small>
- {% trans %}by{% endtrans %}
- {% if topic.user_id %}
- <a href="{{ topic.user.url }}">{{ topic.user.username }}</a>
- {% else %}
- {{ topic.username }}
- {% endif %}
- </small>
- </div>
- </td>
- <td>
- {{ topic.post_count }}
- </td>
- <td>
- {{ topic.views }}
- </td>
- <td>
- <a href="{{ topic.last_post.url }}">{{ topic.last_post.date_created|time_since }}</a><br />
- <small>
- {% trans %}by{% endtrans %}
- {% if topic.last_post.user_id %}
- <a href="{{ topic.last_post.user.url }}">{{ topic.last_post.user.username }}</a>
- {% else %}
- {{ topic.last_post.username }}
- {% endif %}
- </small>
- </td>
- </tr>
- {% else %}
- <tr>
- <td colspan="5">
- No Topics so far.
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% endblock %}
|