8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +00:00

Changement de noms et commit du template

This commit is contained in:
Grizzly 2019-08-11 09:50:37 +00:00 committed by Gabriel Detraz
parent 81d2bf233a
commit 18a97caa56
3 changed files with 4 additions and 2 deletions

View file

@ -62,7 +62,7 @@ def context_optionnal_apps(request):
"""Fonction de context pour générer la navbar en fonction des
apps optionnels"""
optionnal_apps = [import_module(app) for app in OPTIONNAL_APPS]
optionnal_templates_navbar_list = [app.views.navbar(request) for app in optionnal_apps]
optionnal_templates_navbar_list = [app.views.navbar_user(request) for app in optionnal_apps]
return {'optionnal_templates_navbar_list':optionnal_templates_navbar_list}

View file

@ -0,0 +1,2 @@
{% load i18n %}
<li><a href="{% url 'tickets:aff-tickets' %}"><i class="fa fa-ticket"></i>{% trans "Tickets" %}</a></li>

View file

@ -130,6 +130,6 @@ def preferences(request):
context = {'preferences':preferences}
return render_to_string('tickets/preferences.html', context=context, request=request, using=None)
def navbar(request):
def navbar_user(request):
"""Vue cannonique d'affichage des tickets dans la navbar"""
return render_to_string('tickets/navbar.html')