Do not show title in history if title is disabled.

This commit is contained in:
Julien Palard 2018-05-07 23:10:31 +02:00
parent f0021d61e7
commit 40e3339f19
1 changed files with 4 additions and 0 deletions

View File

@ -6,7 +6,9 @@
<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>
@ -17,7 +19,9 @@
{% 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>