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/templates/yuuno/elements/newsPost.twig

18 lines
1.1 KiB
Twig
Raw Normal View History

2016-03-28 14:47:43 +00:00
{% if newsHideTitle is not defined %}<a href="{{ route('news.post', post.id) }}" class="news-head" id="p{{ post.id }}">{{ post.title }}</a>{% endif %}
2015-04-02 13:27:21 +00:00
<div class="news-body">
2016-03-28 14:47:43 +00:00
<a class="no-underline" href="{{ route('user.profile', post.userData.id) }}">
2015-04-02 13:27:21 +00:00
<div class="news-poster">
2016-03-28 14:47:43 +00:00
<img src="{{ route('file.avatar', post.userData.id) }}" alt="{{ post.userData.username }}" class="default-avatar-setting" />
<h1 style="color: {{ post.userData.colour }}; text-shadow: 0 0 7px {% if post.userData.colour != 'inherit' %}{{ post.userData.colour }}{% else %}#222{% endif %}; padding: 0 0 10px;">{{ post.userData.username }}</h1>
2015-04-02 13:27:21 +00:00
</div>
</a>
2016-01-20 23:06:21 +00:00
<div class="bbcode">
2016-03-28 14:47:43 +00:00
{{ post.text|raw }}
2015-04-02 13:27:21 +00:00
</div>
</div>
<div class="clear"></div>
<div class="news-post-time">
2016-03-28 14:47:43 +00:00
Posted <time>{{ post.time|date(sakura.dateFormat) }}</time>
{% if newsHideCommentCount is not defined %}<a class="default" href="{{ route('news.post', post.id) }}#comments">{{ post.commentCount }} comment{% if post.commentCount != 1 %}s{% endif %}</a>{% endif %}
2015-04-02 13:27:21 +00:00
</div>