home » zplus/freepost.git
ID: 43e704fcefb976417ea5a2c0d0d9847aab69d5ee
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>{{ post.created|ago }}</em>
                    by <a href="{{ ('user/' ~ post.username)|docroot }}">{{ post.username }}</a>                    
                    <a href="post/{{ post.hashId }}">{{ post.commentsCount ? post.commentsCount ~ ' comments' : 'discuss' }}</a>
                </div>
            </td>
        </tr>
    {% endfor %}
</table>

{% include 'footer.twig' %}