mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:42:23 +00:00
Fix profile list
This commit is contained in:
parent
fc5c061671
commit
be1957d984
@ -1,10 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load django_tables2 %}
|
||||
{% load django_tables2 i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% render_table table %}
|
||||
{% if user.admin %}
|
||||
{% if type == "organizers" and user.admin %}
|
||||
<hr>
|
||||
<a class="btn btn-block btn-secondary" href="{% url "tournament:add_organizer" %}"><i class="fas fa-user-plus"></i> {% trans "Add an organizer" %}</a>
|
||||
{% endif %}
|
||||
|
@ -10,7 +10,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
{% if type == "organizers" and user.is_authenticated and user.admin %}
|
||||
{% if user.is_authenticated and user.admin %}
|
||||
<hr>
|
||||
<a class="btn btn-block btn-secondary" href="{% url "tournament:add" %}"><i class="fas fa-calendar-plus"></i> {% trans "Add a tournament" %}</a>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user