simpler title/filename printing in templates (#22516)
This commit is contained in:
parent
570b4b391a
commit
5958b9a916
|
@ -26,7 +26,7 @@
|
|||
data-url="{{row.record.get_download_url}}"
|
||||
> {# avoid cycle for Django 1.2-1.6 compatibility #}
|
||||
<td class="title">
|
||||
{% if row.record.title %}{{ row.record.title }}{% else %}{{ row.record.filename }}{% endif %}
|
||||
{{ row.record }}
|
||||
</td>
|
||||
{% for column, cell in row.items %}
|
||||
<td {{ column.attrs.td.as_html }}>{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}</td>
|
||||
|
|
Loading…
Reference in New Issue