a few small fixes to team pages

This commit is contained in:
Thomas Steen Rasmussen 2017-07-11 23:32:56 +02:00
parent 3ef4094e94
commit 9a47622bc6
2 changed files with 3 additions and 3 deletions

View file

@ -45,10 +45,10 @@ Team: {{ team.name }} | {{ block.super }}
</thead>
<tbody>
{% for teammember in team.approvedmembers.all %}
{% if teammember.user.profile.public_credit_name and teammember.approved or teammember.responsible %}
{% if teammember.user.profile.approved_public_credit_name and teammember.approved or teammember.responsible %}
<tr>
<td>
{{ teammember.user.profile.public_credit_name }}
{{ teammember.user.profile.approved_public_credit_name }}
</td>
<td>
{% if teammember.responsible %}Team Responsible{% else %}Team Member{% endif %}

View file

@ -42,7 +42,7 @@ Teams | {{ block.super }}
<td>
{% for resp in team.responsible.all %}
{{ resp.profile.name|default:"Unnamed" }}{% if not forloop.last %},{% endif %}<br>
{{ resp.profile.approved_public_credit_name|default:"Unnamed" }}{% if not forloop.last %},{% endif %}<br>
{% endfor %}
</td>