12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <table class="table table-bordered">
- <thead class="categoryhead">
- <tr>
- <td colspan="5">
- <div><strong><a href="{{ url_for('forum.view_forum', forum_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 %}
- </div>
- {% if forum.children|length %}
- <div class="forum-subforums">
- <ul class="list-inline">
- <li><strong>Subforums:</strong></li>
- {% for subforum in forum.children %}
- <li>
- <a href="{{ url_for('forum.view_forum', forum_id=subforum.id) }}">{{ subforum.title }}</a>
- </li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- </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 %}
- <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>
|