1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <table class="table table-bordered">
- <thead class="categoryhead">
- <tr>
- <td colspan="5">
- <div><strong><a href="{{ url_for('forum.view_category', category_id=category.id) }}">{{ category.title }}</a></strong></div>
- </td>
- </tr>
- </thead>
- <tbody class="forumbody">
- <tr class="forum_stats">
- <td colspan="2"><strong>Forum</strong></td>
- <td width="85" align="center" style="white-space: nowrap"><strong>Topics</strong></td>
- <td width="85" align="center" style="white-space: nowrap"><strong>Posts</strong></td>
- <td width="200" align="center" style="white-space: nowrap"><strong>Last Post</strong></td>
- </tr>
- {% for forum in category.children %}
- <tr>
- <td align="center" valign="center" width="1">
- New </br> Posts
- </td>
- <td valign="top">
- <strong><a href="{{ url_for('forum.view_forum', forum_id=forum.id) }}">{{ forum.title }}</a></strong>
- <div class="forum-description">
- {% autoescape false %}
- {{ forum.description|markup }}
- {% endautoescape %}
- <br />
- <!--
- <strong>Sub Forums:</strong> <a href="#" title="">Subforum 1</a>, <a href="#" title="">Subforum 2</a>
- -->
- </div>
- </td>
- <td valign="top" align="center" style="white-space: nowrap">{{ forum.topic_count }}</td>
- <td valign="top" align="center" style="white-space: nowrap">{{ forum.post_count }}</td>
- <td valign="top" align="right" style="white-space: nowrap">
- {% if forum.last_post_id %}
- <a href="{{ url_for('forum.view_post', post_id=forum.last_post_id) }}" title="{{ forum.last_post.topic.title }}">
- <strong>{{ forum.last_post.topic.title|crop_title }}</strong>
- </a>
- <br />
- {{ forum.last_post.date_created|time_since }}<br />
- by <a href="{{ url_for('user.profile', username=forum.last_post.user.username) }}">{{ forum.last_post.user.username }}</a>
- {% else %}
- No posts
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
|