home ยป zplus/freepost.git
ID: b5967db3815b118b075161062158ba47c6406769
32 lines โ€” 900B โ€” 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,
                <time title="{{ post.created|title }}" datetime="{{ post.created|datetime }}"><em> {{ post.created|ago }} </em></time>
                โ€”
                <a href="../post/{{ post.hashId }}">{{ post.commentsCount }} comments</a>
            </div>
        </div>
        
    {% endfor %}

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