forked from Fediversity/Fediversity
add first part of save able login
This commit is contained in:
parent
25981cdf33
commit
5eff40dec6
3 changed files with 7 additions and 24 deletions
|
@ -16,28 +16,12 @@
|
|||
|
||||
<body>
|
||||
<header>
|
||||
|
||||
{% block navigation %}
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{% url 'index' %}">Start</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'service_list' %}">Services</a>
|
||||
</li>
|
||||
|
||||
{% load custom_tags %}
|
||||
<li>
|
||||
{% if user.is_authenticated %}
|
||||
Welcome, <a href="{% url 'account_detail' %}">{{ user.username }}</a>! <a id="logout" href="{% auth_url 'logout' %}">Logout</a>
|
||||
{% else %}
|
||||
<a id="login" href="{% auth_url 'login' %}">Login</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% endblock navigation %}
|
||||
{% if user.is_authenticated %}
|
||||
<p>Welcome, {{ user.username }}! <a href="{% url 'logout' %}?next={{ request.path }}">Logout</a></p>
|
||||
<p><a href="{% url 'deploy_services' %}">Deploy services</a></p>
|
||||
{% else %}
|
||||
<p><a href="{% url 'login' %}?next={{ request.path }}">Login</a></p>
|
||||
{% endif %}
|
||||
</header>
|
||||
|
||||
{% block layout %}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
<button class="button" disabled>Deploy</button>
|
||||
|
|
Loading…
Add table
Reference in a new issue