-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathapi_docs.html
67 lines (62 loc) · 1.95 KB
/
api_docs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends "base.html" %} {% block head %} {{ super() }}
<link href="{{ url_for('static', path='/api_style.css') }}" rel="stylesheet" />
{% endblock %} {% block content %}
<div class="container mt-4">
<div class="row">
<!-- Left side -->
<div class="col-2"></div>
<!-- Center -->
<div class="col-7">
<!-- Upcoming events -->
<div class="mb-3">
{% for route in routes %}
<!-- Events card -->
<div class="card card-event mb-2 pb-0">
<div class="card-header d-flex justify-content-between">
<small>
<i>Little Header</i>
</small>
<span>
<!-- Event settings -->
<a class="text-dark" href="#">
<i class="fas fa-ellipsis-h"></i>
</a>
</span>
</div>
<div class="card-body pb-1">
<p class="card-text">The Route {{ route.name }}</p>
</div>
</div>
<!-- End Events card -->
{% endfor %}
<div class="card card-event mb-2 pb-0">
<div class="card-body mx-auto d-flex align-items-center">
{% if no_api_key %}
<button id="apiKeyGen" type="button" class="btn btn-primary">
Generate API Key
</button>
{% else %}
<p id="apiKeyHolder" class="m-0">API Key: {{ api_key }}</p>
<button id="apiKeyRefresh" type="button" class="btn btn-primary">
Refresh API Key
</button>
<button id="apiKeyDelete" type="button" class="btn btn-primary">
Delete API Key
</button>
{% endif %}
</div>
</div>
</div>
</div>
<!-- Right side -->
<div class="col-3"></div>
</div>
</div>
<script type="text/javascript">
var user_id = {{ user.id }};
</script>
<script
type="text/javascript"
src="{{ url_for('static', path='/apiKeyGenerator.js') }}"
></script>
{% endblock %}