This commit is contained in:
khrys63 2020-12-14 11:00:25 +01:00
parent 55e8d37fb0
commit 407ce83222
2 changed files with 7 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@
{% block title %}API Tokens{% endblock %}
{% block usercontent %}
<script type="text/javascript" src="/static/qrcode/qrcode.min.js"></script>
<div class="row">
<div class="col-md-12">
{% for token in tokens %}
@ -50,6 +51,11 @@
{% if token.description %}
<br /><span>{{ token.description }}</span>
{% endif %}
<br /><br /><div id="qrcode_{{ token.pk }}" style="width:100px; height:100px;"></div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode_{{ token.pk }}"), {width : 100,height : 100});
qrcode.makeCode(window.location.hostname+" | {{ token.key }}");
</script>
</div>
</div>
{% empty %}