mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
Issues #5443
This commit is contained in:
parent
55e8d37fb0
commit
407ce83222
1
netbox/project-static/qrcode/qrcode.min.js
vendored
Normal file
1
netbox/project-static/qrcode/qrcode.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -4,6 +4,7 @@
|
|||||||
{% block title %}API Tokens{% endblock %}
|
{% block title %}API Tokens{% endblock %}
|
||||||
|
|
||||||
{% block usercontent %}
|
{% block usercontent %}
|
||||||
|
<script type="text/javascript" src="/static/qrcode/qrcode.min.js"></script>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{% for token in tokens %}
|
{% for token in tokens %}
|
||||||
@ -50,6 +51,11 @@
|
|||||||
{% if token.description %}
|
{% if token.description %}
|
||||||
<br /><span>{{ token.description }}</span>
|
<br /><span>{{ token.description }}</span>
|
||||||
{% endif %}
|
{% 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>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
Loading…
Reference in New Issue
Block a user