{% extends 'base.html' %}
{% block topbar %}
<li><a>Date: {{paste.time}}</a></li>
{% if paste.user.username is defined %}
<li><a>User: {{paste.user.username}}</a></li>
{% endif %}
<li><a>ID: {{paste.name}}</a></li>
<li><a>Views: {{paste.views}}</a></li>
{% if paste.expire %}
<li><a>Expires: {{paste.expire|humanize}}</a></li>
{% else %}
<li><a>Expires: Never</a></li>
{% endif %}

{% if owned %}
<li><a href="/{{paste.name}}/delete">Delete</a></li>
{% endif %}
{% endblock %}
{% block body %}
<div class="pure-g-r">
    <div class="pure-u-1-5"></div>
    <div class="pure-u-3-5">
        {% if form is defined %}
        <form action="" method="post" class="pure-form">
            {{form.confirm(class="pure-button pure-button-primary pure-input-1", style=" background: rgb(202, 60, 60);")}}
        </form>
        {% endif %}

        <pre>{{paste.paste}}</pre>
    </div>
    <div class="pure-u-1-5"></div>
</div>

{% endblock %}
{% extends 'base.html' %}
{% block topbar %}
<li><a>Date: {{paste.time|prettytime}}</a></li>
{% if paste.user.username is defined %}
<li><a>User: {{paste.user.username}}</a></li>
{% endif %}
<li><a>ID: {{paste.name}}</a></li>
<li><a>Views: {{paste.views}}</a></li>
{% if paste.expire %}
<li><a>Expires: {{paste.expire|humanize}}</a></li>
{% else %}
<li><a>Expires: Never</a></li>
{% endif %}

{% if owned %}
<li><a href="/{{paste.name}}/delete">Delete</a></li>
{% endif %}
{% endblock %}
{% block body %}
<div class="pure-g-r">
    <div class="pure-u-1-5"></div>
    <div class="pure-u-3-5">
        {% if form is defined %}
        <form action="" method="post" class="pure-form">
            {{form.confirm(class="pure-button pure-button-primary pure-input-1", style=" background: rgb(202, 60, 60);")}}
        </form>
        {% endif %}

        <pre>{{paste.paste}}</pre>
    </div>
    <div class="pure-u-1-5"></div>
</div>

{% endblock %}
Add prettytime filter to date in topbar
Add prettytime filter to date in topbar
