Обновления шаблонов: login.html и navbar.html
This commit is contained in:
@@ -89,11 +89,14 @@
|
||||
|
||||
<!-- 🔧 Debug (только для superuser) -->
|
||||
{% if user.is_superuser %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{% url 'inventory:debug_page' %}" style="color: #dc3545; font-weight: bold;">
|
||||
🔧 Debug
|
||||
</a>
|
||||
</li>
|
||||
{% url 'inventory:debug_page' as debug_url %}
|
||||
{% if debug_url %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ debug_url }}" style="color: #dc3545; font-weight: bold;">
|
||||
🔧 Debug
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user