Don't show "Latest email None ( ago)" for patches without email
authorMagnus Hagander <magnus@hagander.net>
Fri, 6 Feb 2015 12:11:29 +0000 (13:11 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 6 Feb 2015 12:11:29 +0000 (13:11 +0100)
Reported by Stefan

pgcommitfest/commitfest/templates/patch.html

index 2c504cf83ae0732760ae873c85b1adfa2cd4ff2e..7fcf9fdcfb4ed6ee766168b829996c6677098363 100644 (file)
@@ -22,7 +22,7 @@
     </tr>
     <tr>
       <th style="white-space: nowrap;">Latest email</th>
-      <td>{{patch.lastmail}} ({{patch.lastmail|timesince}} ago)</td>
+      <td>{%if patch.lastmail%}{{patch.lastmail}} ({{patch.lastmail|timesince}} ago){%endif%}</td>
     </tr>
     <tr>
       <th>Status</th>