style login and logout after other pages
This commit is contained in:
@@ -1,8 +1,14 @@
|
|||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
<div id=index_menu>
|
||||||
authenticate to {{ name|safe }}
|
authenticate to {{ name|safe }}
|
||||||
<form action={{ url_for('authenticate',name=name) }} method=post enctype=multipart/form-data>
|
<div id=index_enter>
|
||||||
|
<form action={{ url_for('authenticate',name=name) }} method=post enctype=multipart/form-data>
|
||||||
<p><input type=password name=password autofocus>
|
<p><input type=password name=password autofocus>
|
||||||
<input type=submit value=Login>
|
<input type=submit value=Login>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div id=index_menu>
|
<div id=index_menu>
|
||||||
<div id=index_enter>
|
<div id=index_enter>
|
||||||
<input id="index_form_name" type=text name=name title="Hidden share name"
|
<input id="index_form_name" type=text name=name title="Hidden share name"
|
||||||
onkeydown="index_form_enter(event)">
|
onkeydown="index_form_enter(event)" autofocus>
|
||||||
<input type=submit value=Go onclick="index_form_submit()">
|
<input type=submit value=Go onclick="index_form_submit()">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a
|
<td><a
|
||||||
href="{{ url_for('list_view',name=entry.name) }}"
|
href="{{ url_for('list_view',name=entry.name) }}"
|
||||||
title="{{ entry.description | safe }}"
|
title="{{ entry.description | safe }}"
|
||||||
>{{ entry.name }}</a>
|
>{{ entry.name }}</a>
|
||||||
{% if entry.password_set %}(Logged in){% endif %}
|
{% if entry.password_set %}(Logged in){% endif %}
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<p>You are logged out from <a href="{{ url_for('list_view',name=name) }}">{{ name|safe }}</a></p>
|
<div id=index_menu>
|
||||||
|
<p>You logged out from share <a href="{{ url_for('list_view',name=name) }}">{{ name|safe }}</a></p>
|
||||||
<p>Continue to <a href="{{ url_for('index') }}">index</a></p>
|
<p>Continue to <a href="{{ url_for('index') }}">index</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user