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

17 lines
1.2 KiB
Twig
Raw Normal View History

2016-01-09 21:57:54 +00:00
{% if not (viewPost and postExists) %}<a href="{{ urls.format('SITE_NEWS_CAT_POST', [post.news_category, post.news_id]) }}" class="news-head" id="{{ post.news_category }}_{{ post.news_id }}">{{ post.news_title }}</a>{% endif %}
2015-04-02 13:27:21 +00:00
<div class="news-body">
<a class="no-underline" href="{{ urls.format('USER_PROFILE', [post.news_poster.id]) }}">
2015-04-02 13:27:21 +00:00
<div class="news-poster">
<img src="{{ urls.format('IMAGE_AVATAR', [post.news_poster.id]) }}" alt="{{ post.news_poster.username }}" class="default-avatar-setting" />
<h1 style="color: {{ post.news_poster.colour }}; text-shadow: 0 0 7px {% if post.news_poster.colour != 'inherit' %}{{ post.news_poster.colour }}{% else %}#222{% endif %}; padding: 0 0 10px;">{{ post.news_poster.username }}</h1>
2015-04-02 13:27:21 +00:00
</div>
</a>
2016-01-20 23:06:21 +00:00
<div class="bbcode">
{{ post.news_content|raw }}
2015-04-02 13:27:21 +00:00
</div>
</div>
<div class="clear"></div>
<div class="news-post-time">
2016-02-05 22:03:08 +00:00
Posted on <time>{{ post.news_timestamp|date(sakura.dateFormat) }}</time>{% if not (viewPost and postExists) %} <a class="default" href="{{ urls.format('SITE_NEWS_CAT_POST', [post.news_category, post.news_id]) }}#comments">{{ post.news_comments.count }} comment{% if post.news_comments.count != 1 %}s{% endif %}</a>{% endif %}
2015-04-02 13:27:21 +00:00
</div>