1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00

Wrapped apps

This commit is contained in:
quark
2025-02-11 18:19:24 +01:00
parent 7ed544b3ac
commit cd942779ca
19 changed files with 507 additions and 0 deletions

View File

@ -79,6 +79,7 @@ INSTALLED_APPS = [
'scripts',
'treasury',
'wei',
'wrapped',
]
MIDDLEWARE = [

View File

@ -107,6 +107,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% url 'wei:current_wei_detail' as url %}
<a class="nav-link {% if request.path_info == url %}active{% endif %}" href="{{ url }}"><i class="fa fa-bus"></i> {% trans 'WEI' %}</a>
</li>
{% endif %}
{% if "wrapped.wrapped"|model_list_length >= 1 %}
<li class="nav-item">
{% url 'wrapped:wrapped_list' as url %}
<a class="nav-link {% if request.path_info == url %}active{% endif %}" href="{{ url }}"><i class="fa fa-birthday-cake"></i> {% trans 'Wrapped' %}</a>
</li>
{% endif %}
{% if request.user.is_authenticated %}
<li class="nav-item">

View File

@ -22,6 +22,7 @@ urlpatterns = [
path('treasury/', include('treasury.urls')),
path('wei/', include('wei.urls')),
path('food/',include('food.urls')),
path('wrapped/',include('wrapped.urls')),
# Include Django Contrib and Core routers
path('i18n/', include('django.conf.urls.i18n')),