This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/yuuno/forum/forumEntry.tpl

42 lines
3.2 KiB
Smarty
Raw Normal View History

2015-06-27 19:29:37 +00:00
{% if category.forums|length and category.forum|length %}
<tr class="forumCategory">
<td class="forumCategoryTitleColumn" colspan="4">{% if category.forum.forum_type != 1 %}Subforums{% else %}<a href="{{ urls.format('FORUM_SUB', [category.forum.forum_id]) }}" class="clean">{{ category.forum.forum_name }}</a>{% endif %}</td>
2015-06-27 19:29:37 +00:00
</tr>
{% for forum in category.forums %}
<tr class="forumForum">
<td class="forumIconColumn">
<div class="forumIcon read fa fa-3x {% if forum.forum_icon %}{{ forum.forum_icon }}{% else %}{% if forum.forum_type == 2 %}fa-chevron-circle-right{% elseif forum.forum_type == 1 %}fa-folder{% else %}fa-comments{% endif %}{% endif %}"></div>
</td>
<td class="forumTitleColumn"{% if forum.forum_type == 2 %} colspan="3"{% endif %}>
<div class="name"><a href="{% if forum.forum_type == 2 %}{{ forum.forum_link }}{% else %}{{ urls.format('FORUM_SUB', [forum.forum_id]) }}{% endif %}" class="default">{{ forum.forum_name }}</a></div>
2015-06-27 19:29:37 +00:00
<div class="desc">
{{ forum.forum_desc }}
{% if board.forums[forum.forum_id]|length %}
2015-06-28 14:43:46 +00:00
<div class="subforums" style="margin-top: 3px; margin-left: -5px; font-weight: bold;">
2015-06-27 19:29:37 +00:00
Subforums:
{% for forum in board.forums[forum.forum_id].forums %}
<a href="{% if forum.forum_type == 2 %}{{ forum.forum_link }}{% else %}{{ urls.format('FORUM_SUB', [forum.forum_id]) }}{% endif %}" class="default">{{ forum.forum_name }}</a>
2015-06-27 19:29:37 +00:00
{% endfor %}
</div>
{% endif %}
</div>
</td>
{% if forum.forum_type != 2 %}
<td class="forumCountColumn">
2015-07-05 00:03:15 +00:00
<div class="topics" title="Amount of topics in this forum.">{{ forum.topic_count }}</div>
<div class="posts" title="Amount of posts in this forum.">{{ forum.post_count }}</div>
2015-06-27 19:29:37 +00:00
</td>
<td class="forumLastColumn">
<div>
2015-09-16 20:34:36 +00:00
{% if forum.last_post.post_id %}
2015-10-18 16:48:05 +00:00
<a href="{{ urls.format('FORUM_THREAD', [forum.last_post.topic_id]) }}" class="default">{{ forum.last_post.post_subject }}</a><br /><span title="{{ forum.last_post.post_time|date(sakura.dateFormat) }}">{{ forum.last_post.elapsed }}</span> by {% if forum.last_poster.data.user_id %}<a href="{{ urls.format('USER_PROFILE', [forum.last_poster.data.user_id]) }}" class="default" style="color: {{ forum.last_poster.colour }}; text-shadow: 0 0 5px {% if forum.last_poster.colour != 'inherit' %}{{ forum.last_poster.colour }}{% else %}#222{% endif %};">{{ forum.last_poster.data.username }}</a>{% else %}[deleted user]{% endif %} <a href="{{ urls.format('FORUM_POST', [forum.last_post.post.post_id]) }}#p{{ forum.last_poster.post.post_id }}" class="default fa fa-tag"></a>
2015-06-27 19:29:37 +00:00
{% else %}
There are no posts in this forum.<br />&nbsp;
{% endif %}
</div>
</td>
{% endif %}
</tr>
{% endfor %}
{% endif %}