Completing functional conversions
This commit is contained in:
parent
3cfd9840e8
commit
edb16382f3
29 changed files with 1798 additions and 28 deletions
|
@ -82,10 +82,10 @@
|
|||
</div>
|
||||
</form>
|
||||
|
||||
{% sqrl_status_url_script_tag session_sqrl %}
|
||||
<script type="text/javascript">
|
||||
SQRL_CHECK_URL="{% sqrl_status_url_script_tag session_sqrl %}"
|
||||
document.getElementById('id_username').focus()
|
||||
</script>
|
||||
<script src="{% static 'sqrl/sqrl.js' %}"></script>
|
||||
<script type="application/javascript" src="{% static 'sqrl/sqrl.js' %}"></script>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
46
sqrl/templates/base.html
Normal file
46
sqrl/templates/base.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
{% load static %}
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>{% block title %}SQRL Test{% endblock %}</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header>
|
||||
{% block header %}
|
||||
<div>SQRL Test Server</div>
|
||||
<nav>
|
||||
{% if user.is_authenticated %}
|
||||
Logged in as {{ user.username }}
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% if user.is_authenticated %}
|
||||
<li>
|
||||
<a href="{% url 'logout' %}">Log out</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'sqrl:manage' %}">Manage SQRL</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{% url 'sqrl:login' %}">Log In</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endblock %}
|
||||
</header>
|
||||
|
||||
<div id="content">
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</div>
|
||||
|
||||
{% block scripts %}
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -8,7 +8,7 @@
|
|||
max-width: 300px;
|
||||
border-radius: 5%;
|
||||
}
|
||||
#sqrl-id img {
|
||||
#sqrl-qr img {
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
padding-top: 3px;
|
||||
|
@ -37,5 +37,5 @@
|
|||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
{% sqrl_status_url_script_tag session_sqrl %}
|
||||
<script src="{% static sqrl/sqrl.js %}"></script>
|
||||
<script>SQRL_CHECK_URL="{% sqrl_status_url_script_tag session_sqrl %}"</script>
|
||||
<script type="application/javascript" src="{% static 'sqrl/sqrl.js' %}"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue