From 6d599d63389849242ce73d5a30af8b16cf932b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 12 Sep 2016 02:16:46 +0200 Subject: [PATCH] add API Welcome Text --- src/c3nav/api/templates/rest_framework/api.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/c3nav/api/templates/rest_framework/api.html b/src/c3nav/api/templates/rest_framework/api.html index c4ac65da..87494cd0 100644 --- a/src/c3nav/api/templates/rest_framework/api.html +++ b/src/c3nav/api/templates/rest_framework/api.html @@ -18,3 +18,10 @@ {% block branding %} c3nav API {% endblock %} + + +{% block description %} +{% if breadcrumblist|length == 1 %} +

Welcome to the c3nav RESTful API.

+{% else %}{{ description }}{% endif %} +{% endblock %}