home ยป zplus/freepost.git
ID: b08347eeb8ee5bdb47a355fddbc1820c207eed47
38 lines โ€” 1K โ€” View raw


{% extends 'layout.html' %}

{# Set variables for base layour #}
{% set active_page = 'user' %}
{% set title = '' %}

{% block content %}

    <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>
        
{% endblock %}