user type

This commit is contained in:
Hubert Jankowski 2022-05-15 23:57:42 +02:00
parent 5e9d26ff8e
commit b8e4d98b05

View File

@ -19,6 +19,9 @@
<a href="{% url 'home' %}"><i class="fa-solid fa-house"></i> Strona główna</a>
<a href="{% url 'popular' %}"><i class="fa-solid fa-star"></i> Popularne </a>
<a href="{% url 'hard' %}"><i class="fa-solid fa-fire-flame-curved"></i> Trudne </a>
{% if user.type == "admin" %}
<a href="{% url 'home' %}"><i class="fa-solid fa-trophy"></i> Stwórz turniej </a>
{% endif %}
<a href="{% url 'home' %}"><i class="fa-solid fa-trophy"></i> Turnieje </a>
<br>
<a href="{% url 'newTest' %}"><i class="fa-solid fa-circle-plus"></i> Stwórz test</a>