0001-misc-remove-link-to-FranceConnect-screen-if-there-s-.patch
hobo/templates/hobo/home.html | ||
---|---|---|
9 | 9 |
<li><a href="{% url 'profile-home' %}">{% trans 'User Profile' %}</a></li> |
10 | 10 |
<li><a href="{% url 'theme-home' %}">{% trans 'Theme' %}</a></li> |
11 | 11 |
<li><a href="{% url 'emails-home' %}">{% trans 'Emails' %}</a></li> |
12 |
{% if has_authentic %} |
|
12 | 13 |
<li><a href="{% url 'franceconnect-home' %}">FranceConnect</a></li> |
14 |
{% endif %} |
|
13 | 15 |
<li><a href="{% url 'matomo-home' %}">{% trans 'User tracking' %}</a></li> |
14 | 16 |
<li><a href="{% url 'environment-home' %}">{% trans 'Services' %}</a></li> |
15 | 17 |
<li><a href="{% url 'environment-variables' %}">{% trans 'Variables' %}</a></li> |
hobo/views.py | ||
---|---|---|
33 | 33 |
def get_context_data(self, **kwargs): |
34 | 34 |
context = super(Home, self).get_context_data(**kwargs) |
35 | 35 |
context['services'] = [x for x in get_installed_services() if not x.secondary] |
36 |
context['has_authentic'] = bool(Authentic.objects.filter(secondary=False)) |
|
36 | 37 |
return context |
37 | 38 | |
38 | 39 |
home = admin_required(Home.as_view()) |
39 |
- |