custom browsable api header

This commit is contained in:
vabene1111
2020-06-17 10:12:27 +02:00
parent d012385088
commit de413f1473
4 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,19 @@
{% extends "rest_framework/base.html" %}
{% load i18n %}
{% block branding %}
<a class="navbar-brand" href="{% url 'index' %}">{% trans 'Recipe Home' %}</a>
{% endblock %}
{% block userlinks %}
<ul class="nav navbar-nav">
<li>
<a class='navbar-link' rel="noreferrer nofollow" target="_blank" href='https://www.django-rest-framework.org/'>
Django REST framework
</a>
</li>
</ul>
{{ block.super }}
{% endblock %}