Debian Codegraph @

src/drf_yasg/templates/drf-yasg/swagger-ui.html

raw symbols SCIP
1 {% load static %}
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta charset="utf-8"/>
6 <title>{% block title %}{{ title }}{% endblock %}</title>
7
8 {% block extra_head %}
9 {# -- Add any extra HTML heads tags here - except scripts and styles -- #}
10 {% endblock %}
11
12 {% block favicon %}
13 {# -- Maybe replace the favicon -- #}
14 <link rel="icon" type="image/png" href="{% static 'drf-yasg/swagger-ui-dist/favicon-32x32.png' %}"/>
15 {% endblock %}
16
17 {% block main_styles %}
18 <link rel="stylesheet" type="text/css" href="{% static 'drf-yasg/style.css' %}"/>
19 <link rel="stylesheet" type="text/css" href="{% static 'drf-yasg/swagger-ui-dist/swagger-ui.css' %}">
20 {% endblock %}
21 {% block extra_styles %}
22 {# -- Add any additional CSS scripts here -- #}
23 {% endblock %}
24 </head>
25
26 <body class="swagger-body">
27
28 {% block extra_body %}
29 {# -- Add any header/body markup here (rendered BEFORE the swagger-ui/redoc element) -- #}
30 {% endblock %}
31
32 <div id="swagger-ui"></div>
33
34 {% block footer %}
35 {# -- Add any footer markup here (rendered AFTER the swagger-ui/redoc element) -- #}
36 {% endblock %}
37
38 <script id="swagger-settings" type="application/json">{{ swagger_settings | safe }}</script>
39 <script id="oauth2-config" type="application/json">{{ oauth2_config | safe }}</script>
40
41 {% block main_scripts %}
42 <script src="{% static 'drf-yasg/swagger-ui-dist/swagger-ui-bundle.js' %}"></script>
43 <script src="{% static 'drf-yasg/swagger-ui-dist/swagger-ui-standalone-preset.js' %}"></script>
44 <script src="{% static 'drf-yasg/insQ.min.js' %}"></script>
45 <script src="{% static 'drf-yasg/immutable.min.js' %}"></script>
46 <script src="{% static 'drf-yasg/swagger-ui-init.js' %}"></script>
47 {% endblock %}
48 {% block extra_scripts %}
49 {# -- Add any additional scripts here -- #}
50 {% endblock %}
51
52 <a id="oauth2-redirect-url" href="{% static 'drf-yasg/swagger-ui-dist/oauth2-redirect.html' %}" class="hidden"></a>
53
54 {% if USE_SESSION_AUTH %}
55 <div id="django-session-auth" class="hidden">
56 {% block session_auth_button %}
57 {% csrf_token %}
58
59 {% block user_context_message %}
60 {% if request.user.is_authenticated %}
61 <div class="hello">
62 <span class="django-session">Django</span>
63 <span class="label label-primary">{{ request.user }}</span>
64 </div>
65 {% endif %}
66 {% endblock %}
67
68 {% if request.user.is_authenticated %}
69 <div class='btn authorize'>
70 <form method="post" action="{{ LOGOUT_URL }}?next={{ request.path }}">
71 {% csrf_token %}
72 <button type="submit" id="auth" class="header__btn" data-sw-translate>
73 {% block django_logout_message %}Django Logout{% endblock %}
74 </button>
75 </form>
76 </div>
77 {% else %}
78 <div class='btn authorize'>
79 <a id="auth" class="header__btn" href="{{ LOGIN_URL }}?next={{ request.path }}" data-sw-translate>
80 {% block django_login_message %}Django Login{% endblock %}
81 </a>
82 </div>
83 {% endif %}
84 {% endblock %}
85 </div>
86 {% endif %}
87 </body>
88
89 </html>