]> git.ozlabs.org Git - patchwork/commitdiff
templates/patch-list: add default text for patches with no name
authorJeremy Kerr <jk@ozlabs.org>
Tue, 10 Aug 2010 00:58:12 +0000 (08:58 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 10 Aug 2010 00:58:12 +0000 (08:58 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
templates/patchwork/patch-list.html

index d4dd325c61fc4899548dd3cb00edc4495f2c7480..bc9abe943e62364bd1a5fbcea698e9e52c79467b 100644 (file)
     </td>
     {% endif %}
    <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}"
-     >{{ patch.name }}</a></td>
+     >{{ patch.name|default:"[no subject]" }}</a></td>
    <td>{{ patch.date|date:"Y-m-d" }}</td>
    <td>{{ patch.submitter|personify }}</td>
    <td>{{ patch.delegate.username }}</td>