hide <th> when no buttons, add ? to headline

This commit is contained in:
Thomas Steen Rasmussen 2017-05-24 08:02:33 +02:00
parent 0007e5424c
commit 9bc9ed1ef7

View file

@ -22,8 +22,10 @@ Teams | {{ block.super }}
<th>Description</th>
<th>Responsible</th>
<th>Members</th>
<th>Member</th>
<th>Member?</th>
{% if request.user in team.members.all or request.user in team.responsible.all %}
<th>Actions</th>
{% endif %}
</tr>
</thead>
<tbody>