Projet

Général

Profil

0001-simpler-title-filename-printing-in-templates-22516.patch

Paul Marillonnet, 14 mars 2018 12:30

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH] simpler title/filename printing in templates (#22516)

 fargo/templates/fargo/table.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fargo/templates/fargo/table.html
26 26
      data-url="{{row.record.get_download_url}}"
27 27
      > {# avoid cycle for Django 1.2-1.6 compatibility #}
28 28
    <td class="title">
29
    {% if row.record.title %}{{ row.record.title }}{% else %}{{ row.record.filename }}{% endif %}
29
    {{ row.record }}
30 30
    </td>
31 31
    {% for column, cell in row.items %}
32 32
      <td {{ column.attrs.td.as_html }}>{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}</td>
33
-