api: use common skeleton in swagger template

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-24 17:46:41 +01:00
parent 83c3a116f3
commit ffd8c59c8e
1 changed files with 20 additions and 23 deletions

View File

@ -1,24 +1,21 @@
{% load static %}
{% load i18n %}
{% extends "base/skeleton.html" %}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="module" src="{% static 'dist/rapidoc-min.js' %}"></script>
<title>{% block title %}{% trans title|default:config.authentik.branding.title %}{% endblock %}</title>
</head>
<body>
<rapi-doc
spec-url="{{ path }}"
heading-text="authentik"
theme="dark"
primary-color="#fd4b2d"
allow-spec-url-load="false"
allow-spec-file-load="false">
<div slot="logo">
<img src="{% static 'dist/assets/icons/icon.png' %}" style="width:50px; height:50px" />
</div>
</rapi-doc>
</body>
</html>
{% load static %}
{% block head %}
<script type="module" src="{% static 'dist/rapidoc-min.js' %}"></script>
{% endblock %}
{% block body %}
<rapi-doc
spec-url="{{ path }}"
heading-text="authentik"
theme="dark"
primary-color="#fd4b2d"
allow-spec-url-load="false"
allow-spec-file-load="false">
<div slot="logo">
<img src="{% static 'dist/assets/icons/icon.png' %}" style="width:50px; height:50px" />
</div>
</rapi-doc>
{% endblock %}