diff --git a/templates/member/profile_list.html b/templates/member/profile_list.html index cac381f..7a6f85f 100644 --- a/templates/member/profile_list.html +++ b/templates/member/profile_list.html @@ -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 %}
{% trans "Add an organizer" %} {% endif %} diff --git a/templates/tournament/tournament_list.html b/templates/tournament/tournament_list.html index cb6ae87..6a3479a 100644 --- a/templates/tournament/tournament_list.html +++ b/templates/tournament/tournament_list.html @@ -10,7 +10,7 @@ {% endif %} {% render_table table %} - {% if type == "organizers" and user.is_authenticated and user.admin %} + {% if user.is_authenticated and user.admin %}
{% trans "Add a tournament" %} {% endif %}