Commit 6b0df8a0 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

add configurable helpdesk/issues/contact links

close #275
parent 8f01d79f
Pipeline #44136 failed with stage
in 1 minute and 2 seconds
from django import template
import config.env
register = template.Library()
@register.simple_tag(name="env_var")
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 @@
<ul>
<li><a href="https://allgo.gitlabpages.inria.fr/doc/">Documentation</a></li>
<li><a href="https://gitlab.inria.fr/allgo/allgo.inria.fr/issues">Report an issue</a></li>
<li><a href="mailto:allgo@inria.fr">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>
</ul>
</div>
</div>
......
......@@ -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="https://helpdesk.inria.fr/categories/227/submit",
help="""Helpdesk URL for the ALLGO service""")
env_var("ALLGO_BUG_TRACKER_URL", default="https://gitlab.inria.fr/allgo/allgo.inria.fr/issues",
help="""Bug tracker URL for ALLGO service""")
env_var("ALLGO_CONTACT", default="mailto:allgo@inria.fr",
help="""Email contact for ALLGO service""")
#
# allgo authentication tokens
#
......
Markdown is supported
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