diff --git a/hobo/templates/hobo/home.html b/hobo/templates/hobo/home.html index 14b6e46..3f45c83 100644 --- a/hobo/templates/hobo/home.html +++ b/hobo/templates/hobo/home.html @@ -9,7 +9,9 @@
  • {% trans 'User Profile' %}
  • {% trans 'Theme' %}
  • {% trans 'Emails' %}
  • + {% if has_authentic %}
  • FranceConnect
  • + {% endif %}
  • {% trans 'User tracking' %}
  • {% trans 'Services' %}
  • {% trans 'Variables' %}
  • diff --git a/hobo/views.py b/hobo/views.py index 537f606..87922a2 100644 --- a/hobo/views.py +++ b/hobo/views.py @@ -33,6 +33,7 @@ class Home(TemplateView): def get_context_data(self, **kwargs): context = super(Home, self).get_context_data(**kwargs) context['services'] = [x for x in get_installed_services() if not x.secondary] + context['has_authentic'] = bool(Authentic.objects.filter(secondary=False)) return context home = admin_required(Home.as_view())