api: use common skeleton in swagger template
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
83c3a116f3
commit
ffd8c59c8e
|
@ -1,14 +1,12 @@
|
||||||
{% load static %}
|
{% extends "base/skeleton.html" %}
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
<!doctype html>
|
{% load static %}
|
||||||
<html>
|
|
||||||
<head>
|
{% block head %}
|
||||||
<meta charset="utf-8">
|
|
||||||
<script type="module" src="{% static 'dist/rapidoc-min.js' %}"></script>
|
<script type="module" src="{% static 'dist/rapidoc-min.js' %}"></script>
|
||||||
<title>{% block title %}{% trans title|default:config.authentik.branding.title %}{% endblock %}</title>
|
{% endblock %}
|
||||||
</head>
|
|
||||||
<body>
|
{% block body %}
|
||||||
<rapi-doc
|
<rapi-doc
|
||||||
spec-url="{{ path }}"
|
spec-url="{{ path }}"
|
||||||
heading-text="authentik"
|
heading-text="authentik"
|
||||||
|
@ -20,5 +18,4 @@
|
||||||
<img src="{% static 'dist/assets/icons/icon.png' %}" style="width:50px; height:50px" />
|
<img src="{% static 'dist/assets/icons/icon.png' %}" style="width:50px; height:50px" />
|
||||||
</div>
|
</div>
|
||||||
</rapi-doc>
|
</rapi-doc>
|
||||||
</body>
|
{% endblock %}
|
||||||
</html>
|
|
||||||
|
|
Reference in New Issue