ID: 36a63971005238bd4ee89e1610b86a09d62acfcb
37 lines
—
1K —
View raw
| {% include 'header.twig' %}
<table class="posts">
{% for post in posts %}
<tr>
<td class="bump">
{% if not votes[post.id] %}
<a href="vote?up&post={{ post.hashId }}" target="vote_sink" onclick="hide(this)">▲</a>
{% endif %}
</td>
<td class="post">
<div class="title">
{% if post.link|length > 0 %}
<a href="{{ post.link }}">
{{ post.title }}
</a>
{% else %}
<a href="post/{{ post.hashId }}">
{{ post.title }}
</a>
{% endif %}
</div>
<div class="info">
{{ post.vote }} votes
<em><a href="post/{{ post.hashId }}">{{ post.created|ago }}</a></em>
by <a href="{{ ('user/' ~ post.username)|docroot }}">{{ post.username }}</a> •
<a href="post/{{ post.hashId }}#comments">{{ post.commentsCount ? post.commentsCount ~ ' comments' : 'discuss' }}</a>
</div>
</td>
</tr>
{% endfor %}
</table>
{% include 'footer.twig' %}
|