39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="icon" type="image/x-icon" href="{% static 'qrcode/img/favicon.ico' %}">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script type="application/json" id="qrcode-reader-i18n">
|
|
{
|
|
"always": "Toujours",
|
|
"close": "{% trans 'Close' %}",
|
|
"expired": "{% trans 'QR code Expired' %}",
|
|
"from": "{% trans 'From' %}",
|
|
"invalid_content": "{% trans "This QR code isn't supported by this application." %}",
|
|
"invalid_signature": "{% trans 'Signature verification failed.' %}",
|
|
"invalid_title": "Invalid QR Code",
|
|
"never": "Jamais",
|
|
"not_supported": "{% trans "QR code reader isn\'t supported on your platform. Please update your browser." %}",
|
|
"not_yet_valid": "{% trans 'QR code not yet valid' %}",
|
|
"to": "{% trans 'To' %}",
|
|
"valid": "{% trans 'Valid QR code' %}"
|
|
}
|
|
</script>
|
|
<link rel="stylesheet" href="{% static 'qrcode/css/style.css' %}">
|
|
<script type="module" src="{% static 'qrcode/js/qrcode-reader.js' %}"></script>
|
|
</head>
|
|
<body>
|
|
{% if not started %}
|
|
{% trans "Reader isn't usable yet." %}
|
|
{% elif expired %}
|
|
{% trans "Reader has expired." %}
|
|
{% else %}
|
|
<qrcode-reader verify-key="{{ verify_key }}"></qrcode-reader>
|
|
{% endif %}
|
|
</body>
|
|
</html>
|