Fix dashboard superuser bug
This commit is contained in:
parent
ad9fe6c5b3
commit
ddcc775d43
|
@ -115,7 +115,7 @@
|
||||||
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
|
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
|
||||||
{% for gymnast in waiting_update_gymnast %}
|
{% for gymnast in waiting_update_gymnast %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
|
<td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
|
||||||
<td class="text-right">{{ gymnast.club.acronym }}</td>
|
<td class="text-right">{{ gymnast.club.acronym }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="gymnast_table">
|
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="gymnast_table">
|
||||||
{% for gymnast in last_updated_gymnasts %}
|
{% for gymnast in last_updated_gymnasts %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
|
<td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
|
||||||
<td class="text-right">{{ gymnast.club.acronym }}</td>
|
<td class="text-right">{{ gymnast.club.acronym }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
|
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
|
||||||
{% for gymnast in birthday_list %}
|
{% for gymnast in birthday_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast.first_name }}</a></td>
|
<td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast.first_name }}</a></td>
|
||||||
<td class="">{{ gymnast.birthdate | date:"j M"}}</td>
|
<td class="">{{ gymnast.birthdate | date:"j M"}}</td>
|
||||||
<td class="text-right">{{ gymnast.next_age }} years</td>
|
<td class="text-right">{{ gymnast.next_age }} years</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue