From be1957d984efcadeb2cf046b78fe53ec9c858a4e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 18 May 2020 23:37:02 +0200 Subject: [PATCH] Fix profile list --- templates/member/profile_list.html | 4 ++-- templates/tournament/tournament_list.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %}