diff --git a/umap/context_processors.py b/umap/context_processors.py new file mode 100644 index 0000000000000000000000000000000000000000..f973e7c1c3fca9ea9f897adba1e3bc0b941e3b44 --- /dev/null +++ b/umap/context_processors.py @@ -0,0 +1,6 @@ +from django.conf import settings + +def feedback_link(request): + return { + 'UMAP_FEEDBACK_LINK': settings.UMAP_FEEDBACK_LINK + } diff --git a/umap/settings/base.py b/umap/settings/base.py index 7498a940b406177b3f8052bf8f3ddaaebebd01b1..a50655008e0ec8033b8978aeafe8ee90a8957dd3 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -109,6 +109,7 @@ TEMPLATE_CONTEXT_PROCESSORS += ( 'django.core.context_processors.request', 'social.apps.django_app.context_processors.backends', 'social.apps.django_app.context_processors.login_redirect', + 'umap.context_processors.feedback_link' ) TEMPLATE_LOADERS = ( @@ -148,6 +149,7 @@ SITE_URL = "http://umap.org" UMAP_DEMO_SITE = False MAP_SHORT_URL_NAME = "umap_short_url" UMAP_USE_UNACCENT = False +UMAP_FEEDBACK_LINK = "http://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help" #============================================================================== # Third party app settings diff --git a/umap/templates/umap/navigation.html b/umap/templates/umap/navigation.html index 5307c85fc03eee69a0f80d5be8242c1cfdf51254..970d3c1bc7b203e5c7d43cfbe102a49d0a6bf77e 100644 --- a/umap/templates/umap/navigation.html +++ b/umap/templates/umap/navigation.html @@ -14,7 +14,7 @@ <li><a href="{% url 'login' %}" class="login">{% trans "Log in" %} / {% trans "Sign in" %}</a></li> {% endif %} <li><a href="{% url 'about' %}">{% trans "About" %}</a></li> - <li class="mhide"><a href="mailto:yb@fluv.io">{% trans "Feedback" %}</a></li> + <li class="mhide"><a href="{{ UMAP_FEEDBACK_LINK }}">{% trans "Feedback" %}</a></li> {% if user.is_authenticated %} <li><a href="{% url 'logout' %}" class="logout">{% trans "Log out" %}</a></li> {% endif %}