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

20 lines
915 B
Smarty
Raw Normal View History

2015-07-04 19:53:15 +00:00
<div class="news-post" id="n{{ newsPost.id }}">
<div class="news-header">
<a class="news-title floatLeft" href="/news/{{ newsPost.id }}">{{ newsPost.title }}</a>
<div class="news-details floatRight">
<div>{{ newsPost.date|date("D Y-m-d H:i:s T") }}</div>
<div>Posted by <a style="color: {{ newsPost.rdata.colour }};" href="/u/{{ newsPost.uid }}">{{ newsPost.udata.username }}</a>{% if newsPosts|length > 1 %} / <a class="default" href="/news/{{ newsPost.id }}#disqus_thread">View comments</a>{% endif %}</div>
</div>
<div class="clear"></div>
</div>
<div class="news-content">
<div class="news-avatar">
<img src="/a/{{ newsPost.uid }}" alt="{{ newsPost.udata.username }}" />
</div>
<div class="news-text">
{{ newsPost.parsed|raw }}
</div>
<div class="clear"></div>
</div>
</div>