Completing functional conversions
This commit is contained in:
parent
3cfd9840e8
commit
edb16382f3
29 changed files with 1798 additions and 28 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue