Help link

* adds help link
pull/2/head
mipel 3 years ago
parent 67f415c2e3
commit f88b206756

@ -7,6 +7,7 @@ Created on: 16.11.20
"""
from django.http import HttpRequest
from konova.settings import HELP_LINK
from konova.sub_settings.context_settings import BASE_TITLE, WIKI_URL, BASE_FRONTEND_TITLE
@ -21,6 +22,7 @@ class BaseContext:
"wiki_url": WIKI_URL,
"user": None,
"current_role": None,
"help_link": HELP_LINK,
}
def __init__(self, request: HttpRequest, additional_context: dict = {}):

@ -56,7 +56,10 @@ ETS_GROUP = "Conservation office"
# ServerMessageImportance bootstrap resolver
SVI_BOOTSTRAP_CLS_MAP = {
ServerMessageImportance.DEFAULT.value: None,
ServerMessageImportance.DEFAULT.value: "",
ServerMessageImportance.WARNING.value: "alert-danger",
ServerMessageImportance.INFO.value: "alert-info",
}
# HELP PAGE LINK
HELP_LINK = "https://dienste.naturschutz.rlp.de/doku/doku.php?id=ksp:start"

@ -3,7 +3,7 @@
<div class="container">
<div class="d-flex justify-content-center">
<span class="col-sm-auto footer-link">
<a href="{% url 'home' %}">{% trans 'Help' %}</a>
<a href="{{ help_link }}" target="_blank">{% trans 'Help' %}</a>
</span>
<span class="col-sm-auto footer-link">
<a href="{% url 'home' %}">{% trans 'Impressum' %}</a>

Loading…
Cancel
Save