Commit f9ce65d5 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Merge branch '275-add-helpdesk-links-alt' into 'django'

add configurable helpdesk/issues/contact links

Closes #275

See merge request !144
parents 48095ee4 6b0df8a0
Pipeline #44646 failed with stage
in 48 seconds
from django import template
import config.env
register = template.Library()
def env_var(name):
return getattr(config.env, name, "")
{% load static %}
{% load static env_var %}
<footer class="footer container-fluid w-100 bg-dark text-light py-3">
<div class="container">
......@@ -34,8 +34,9 @@
<li><a href="">Documentation</a></li>
<li><a href="">Report an issue</a></li>
<li><a href="">Contact</a></li>
<li><a href="{% env_var "ALLGO_HELPDESK_URL" %}">Helpdesk</a></li>
<li><a href="{% env_var "ALLGO_BUG_TRACKER_URL" %}">Report an issue</a></li>
<li><a href="{% env_var "ALLGO_CONTACT" %}">Contact</a></li>
......@@ -196,6 +196,15 @@ with env_loader.EnvironmentVarLoader(__name__, "ALLGO_",
help="""Allow signing in with a local account (for development
purpose only)""")
env_var("ALLGO_HELPDESK_URL", default="",
help="""Helpdesk URL for the ALLGO service""")
env_var("ALLGO_BUG_TRACKER_URL", default="",
help="""Bug tracker URL for ALLGO service""")
env_var("ALLGO_CONTACT", default="",
help="""Email contact for ALLGO service""")
# allgo authentication tokens
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment