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/resources/views/yuuno/forum/elements/topicEntry.twig

28 lines
2 KiB
Twig
Raw Normal View History

<tr>
2016-07-30 13:48:09 +00:00
<td class="topicIcon{% if topic.unread(user.id) %} unread{% endif %}{% if topic.type == 2 %} topicAnnouncement{% endif %}">
<div class="fa fa-2x fa-{% if topic.type == 1 %}thumb-tack{% elseif topic.type == 2 %}bullhorn{% elseif topic.status == 1 %}lock{% else %}navicon{% endif %}"></div>
</td>
2016-07-30 13:48:09 +00:00
<td class="topicTitle{% if topic.type == 2 %} topicAnnouncement{% endif %}">
<a href="{{ route('forums.topic', topic.id) }}" class="default">{{ topic.title }}</a>
</td>
2016-07-30 13:48:09 +00:00
<td class="topicAuthor{% if topic.type == 2 %} topicAnnouncement{% endif %}">
{% if topic.firstPost.poster.id %}
<a href="{{ route('user.profile', topic.firstPost.poster.id) }}" class="default" style="color: {{ topic.firstPost.poster.colour }}; text-shadow: 0 0 5px {% if topic.firstPost.poster.colour != 'inherit' %}{{ topic.firstPost.poster.colour }}{% else %}#222{% endif %};">{{ topic.firstPost.poster.username }}</a>
{% else %}
[deleted user]
{% endif %}
</td>
2016-07-30 13:48:09 +00:00
<td class="topicCounts{% if topic.type == 2 %} topicAnnouncement{% endif %}">
<div class="replies" title="Amount of replies to this topic.">{{ topic.replyCount }}</div>
<div class="views" title="Amount of times this topic has been viewed.">{{ topic.views }}</div>
</td>
2016-07-30 13:48:09 +00:00
<td class="topicLast{% if topic.type == 2 %} topicAnnouncement{% endif %}">
{% if topic.lastPost.poster.id %}
<a href="{{ route('user.profile', topic.lastPost.poster.id) }}" class="default" style="color: {{ topic.lastPost.poster.colour }}; text-shadow: 0 0 5px {% if topic.lastPost.poster.colour != 'inherit' %}{{ topic.lastPost.poster.colour }}{% else %}#222{% endif %};">{{ topic.lastPost.poster.username }}</a>
{% else %}
[deleted user]
2016-07-30 13:48:09 +00:00
{% endif %} <a href="{{ route('forums.post', topic.lastPost.id) }}" class="default fa fa-tag"></a><br>
2016-08-04 21:24:08 +00:00
<time class="time-ago" datetime="{{ topic.lastPost.time|date('r') }}">{{ topic.lastPost.time|date(config('general.date_format')) }}</time>
</td>
</tr>