-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathhome.html
47 lines (40 loc) · 1.46 KB
/
home.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
{% extends 'base.html' %}
{% load static %}
{% block content %}
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.html">Dashboard</a>
</li>
<li class="breadcrumb-item active">Blank Page</li>
</ol>
<!-- Page Content -->
{% if registered %}
<div class="alert alert-success">Registered Successfully</div>
{% endif %}
<h1>Welcome {{ request.user.username }}!</h1>
<hr/>
<div id="passkeys-supported" style="display: none">
<div class="alert alert-success">
Your device supports passkeys.
</div>
<a href="{% url 'passkeys:enroll' %}">Enroll</a>
</div>
<div id="passkeys-missing" style="display: none">
<div class="alert alert-danger">
Your device does not support passkeys.
</div>
</div>
</div>
<script type="application/javascript" src="{% static 'passkeys/js/passkeys.js' %}"></script>
<script type="application/javascript">
(function () {
DjangoPasskeys.checkPasskeysSupport(() => {
document.querySelector('#passkeys-supported').style.display = 'block';
}, () => {
document.querySelector('#passkeys-missing').style.display = 'block';
});
})();
</script>
{% endblock %}