pasteque/paste/templates/paste/history.html

37 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans 'Lasts pastes' %}{% endblock %}
{% block content %}
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<table class="table table-striped table-bordered">
<tr>
<th>#</th>
{% if PASTE.has_title %}
<th>{% trans 'Title' %}</th>
{% endif %}
<th>{% trans 'Language' %}</th>
<th>{% trans 'Size' %}</th>
<th>{% trans 'Paste time' %}</th>
<th>{% trans 'Protection' %}</th>
<th>{% trans 'Views' %}</th>
</tr>
{% for paste in pastes %}
<tr>
<td>{{ paste.id }}</td>
{% if PASTE.has_title %}
<td class="title"><a href="{% url 'paste' slug=paste.slug %}">{{ paste.title|truncatechars:40 }}</a></td>
{% endif %}
<td>{% trans paste.language.name %}</td>
<td>{{ paste.size }}</td>
<td>{{ paste.paste_time }}</td>
<td>{{ paste.viewcount }}</td>
</tr>
{% empty %}
<tr>
<td colspan="8">{% trans 'Nothing has been pasted yet' %}.</td>
</tr>
{% endfor %}
</table>
{% endblock %}