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/misaki/elements/newsPost.tpl
flashwave a28cfd6e69 r20151012
Signed-off-by: Flashwave <me@flash.moe>
2015-10-12 19:28:34 +02:00

19 lines
1.2 KiB
Smarty
Executable file

<div class="news-post" id="n{{ post.news_id }}">
<div class="news-header">
<a class="news-title floatLeft" href="{{ urls.format('SITE_NEWS_POST', [post.news_id]) }}">{{ post.news_title }}</a>
<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.data.user_id]) }}">{{ post.news_poster.data.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>
</div>
<div class="clear"></div>
</div>
<div class="news-content">
<div class="news-avatar">
<img src="{{ urls.format('IMAGE_AVATAR', [post.news_poster.data.user_id]) }}" alt="{{ post.news_poster.data.username }}" />
</div>
<div class="news-text">
{{ post.news_content_parsed|raw }}
</div>
<div class="clear"></div>
</div>
</div>