home ยป zplus/freepost.git
ID: ed7184a598274cec8bf0595fe23045ed5f339bc7
32 lines โ€” 813B โ€” View raw


{% include 'header.twig' %}

<div class="user_activity">

    {% for post in posts %}
        
        <div>
            {# Post title #}
            {% if post.link|length > 0 %}
                <a href="{{ post.link }}">
                    {{ post.title }}
                </a>
            {% else %}
                <a href="../post/{{ post.hashId }}">
                    {{ post.title }}
                </a>
            {% endif %}
            
            {# Post info #}
            <div class="info">
                {{ post.vote }} votes,
                <em>{{ post.created|ago }}</em>
                โ€”
                <a href="../post/{{ post.hashId }}">{{ post.commentsCount }} comments</a>
            </div>
        </div>
        
    {% endfor %}

</div>
        
{% include 'footer.twig' %}