beautify, hashed passwords and session ids
This commit is contained in:
parent
fbe71b389e
commit
7e4a7ad38f
5 changed files with 122 additions and 27 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<form action="/{{ config["directory"] }}" method="post">
|
||||
<input type="password" name="password">
|
||||
<input type="submit">
|
||||
<input type="password" name="password" placeholder="Password">
|
||||
<input type="submit" class="button" value="Authenticate">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
|
||||
<title>{{ cloud_name }} :: {{ config["directory"] }}</title>
|
||||
<title>{{ config["directory"] }} | {{ cloud_name }}</title>
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
<div>
|
||||
<span id="cloud-name">{{ cloud_name }} :: </span><span id="directory-name">{{ config["directory"] }}</span>
|
||||
<span id="cloud-name">{{ cloud_name }}</span><span id="directory-name">{{ config["directory"] }}</span>
|
||||
</div>
|
||||
{% block nav_content %}{% endblock %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,21 @@
|
|||
{% extends "base.html" %}
|
||||
{% block nav_content %}
|
||||
{% if config["upload"] %}
|
||||
<div>
|
||||
<div>
|
||||
{% if config["upload"] %}
|
||||
<form action="/{{ config["directory"] }}" enctype="multipart/form-data" method="post">
|
||||
<label class="button upload">
|
||||
<input type="file" name="file" onchange="this.form.submit()">
|
||||
Upload
|
||||
</label>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if config["hashed_password"] %}
|
||||
<form action="/{{ config["directory"] }}" method="post">
|
||||
<input hidden type="text" name="logout">
|
||||
<input type="submit" class="button logout" value="Logout">
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% for f in files %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue