Import api.js into the rest of the pages.
Now we can do anything from anywhere!
This commit is contained in:
parent
d436b32df8
commit
0ea9f19592
6 changed files with 9 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
<link rel="stylesheet" href="/static/css/photo_card.css">
|
||||
<link rel="stylesheet" href="/static/css/clipboard_tray.css">
|
||||
<script src="/static/js/common.js"></script>
|
||||
<script src="/static/js/api.js"></script>
|
||||
<script src="/static/js/hotkeys.js"></script>
|
||||
<script src="/static/js/photo_clipboard.js"></script>
|
||||
<script src="/static/js/tag_autocomplete.js"></script>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<a class="header_element" href="/tags">Tags</a>
|
||||
{% if session.user %}
|
||||
<a class="header_element" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
|
||||
<button class="header_element" onclick="common.post('/logout', null, common.refresh);" style="flex:0">Logout</button>
|
||||
<button class="header_element" onclick="api.users.logout(common.refresh);" style="flex:0">Logout</button>
|
||||
{% else %}
|
||||
<a class="header_element" href="/login">Log in</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
<head>
|
||||
<title>Etiquette</title>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="/static/css/common.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/static/css/common.css">
|
||||
<script src="/static/js/common.js"></script>
|
||||
<script src="/static/js/api.js"></script>
|
||||
|
||||
<style>
|
||||
body
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<link rel="stylesheet" href="/static/css/photo_card.css">
|
||||
<link rel="stylesheet" href="/static/css/clipboard_tray.css">
|
||||
<script src="/static/js/common.js"></script>
|
||||
<script src="/static/js/api.js"></script>
|
||||
<script src="/static/js/hotkeys.js"></script>
|
||||
<script src="/static/js/photo_clipboard.js"></script>
|
||||
<script src="/static/js/tag_autocomplete.js"></script>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/static/css/common.css">
|
||||
<script src="/static/js/common.js"></script>
|
||||
<script src="/static/js/api.js"></script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/static/css/common.css">
|
||||
<script src="/static/js/common.js"></script>
|
||||
<script src="/static/js/api.js"></script>
|
||||
|
||||
<style>
|
||||
#content_body
|
||||
|
|
Loading…
Reference in a new issue