Fix profile list

This commit is contained in:
Yohann D'ANELLO 2020-05-18 23:37:02 +02:00
parent fc5c061671
commit be1957d984
2 changed files with 3 additions and 3 deletions

View File

@ -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 %}

View File

@ -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 %}