paperwork: Hide list addresses in department cert view if None

This commit is contained in:
Adam Goldsmith 2023-02-03 18:36:34 -05:00
parent 47531d6f16
commit 45d550878d

View File

@ -16,7 +16,7 @@
<tr> <tr>
<td>{{ department.name }}</td> <td>{{ department.name }}</td>
<td>{{ department.shop_lead_flag.members.all|join:", " }}</td> <td>{{ department.shop_lead_flag.members.all|join:", " }}</td>
<td><a href="mailto:{{ department.list_address }}">{{ department.list_address }}</a></td> <td>{% if department.list_address is not none %}<a href="mailto:{{ department.list_address }}">{{ department.list_address }}</a>{% endif %}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>