Do not show title in history if title is disabled.
This commit is contained in:
parent
f0021d61e7
commit
40e3339f19
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue