mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Changement de noms et commit du template
This commit is contained in:
parent
81d2bf233a
commit
18a97caa56
3 changed files with 4 additions and 2 deletions
|
@ -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}
|
||||
|
||||
|
||||
|
|
2
tickets/templates/tickets/navbar.html
Normal file
2
tickets/templates/tickets/navbar.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{% load i18n %}
|
||||
<li><a href="{% url 'tickets:aff-tickets' %}"><i class="fa fa-ticket"></i>{% trans "Tickets" %}</a></li>
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue