Skip to content

Commit

Permalink
Changed partial_user_list template to prevent error message when a gy…
Browse files Browse the repository at this point in the history
…m has no users.
  • Loading branch information
purplebird committed Nov 14, 2015
1 parent d0038bf commit 6a52601
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wger/gym/templates/gym/partial_user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
<table class="table table-hover" id="main_member_list">
<thead>
<tr>
{% for key in user_table.keys %}
<th>{{ key }}</th>
{% endfor %}
{% if user_count > 0 %}
{% for key in user_table.keys %}
<th>{{ key }}</th>
{% endfor %}
{% endif %}
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -55,4 +57,4 @@
</tr>
{% endfor %}
</tbody>
</table>
</table>

0 comments on commit 6a52601

Please sign in to comment.