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

20 lines
1.1 KiB
Twig
Raw Normal View History

<div class="news-post" id="n{{ post.news_id }}">
2015-07-04 19:53:15 +00:00
<div class="news-header">
<a class="news-title floatLeft" href="{{ urls.format('SITE_NEWS_POST', [post.news_id]) }}">{{ post.news_title }}</a>
2015-07-04 19:53:15 +00:00
<div class="news-details floatRight">
<div>{{ post.news_timestamp|date(sakura.dateFormat) }}</div>
<div>Posted by <a class="username" style="color: {{ post.news_poster.colour }};" href="{{ urls.format('USER_PROFILE', [post.news_poster.id]) }}">{{ post.news_poster.username }}</a>{% if not (viewPost and postExists) %} / <a class="default" href="{{ urls.format('SITE_NEWS_POST', [post.news_id]) }}#comments">{{ post.news_comments.count }} comment{% if post.news_comments.count != 1 %}s{% endif %}</a>{% endif %}</div>
2015-07-04 19:53:15 +00:00
</div>
<div class="clear"></div>
</div>
<div class="news-content">
<div class="news-avatar">
<img src="{{ urls.format('IMAGE_AVATAR', [post.news_poster.id]) }}" alt="{{ post.news_poster.username }}" />
2015-07-04 19:53:15 +00:00
</div>
<div class="news-text">
{{ post.news_content_parsed|raw }}
2015-07-04 19:53:15 +00:00
</div>
<div class="clear"></div>
</div>
</div>