some styling

This commit is contained in:
2018-01-24 20:55:29 +02:00
parent e31f1e3f6d
commit 0c6580f323
4 changed files with 407 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
<!doctype html>
<head>
<title>Flees</title>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
<script src="{{ url_for('static', filename='script.js') }}" type="text/javascript"></script>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/styles.css') }}">
<script src="{{ url_for('static', filename='js/tablesort.js') }}" type="text/javascript"></script>
</head>
<body>
<div class=page>

View File

@@ -1,41 +1,53 @@
{% extends "layout.html" %}
{% block body %}
<h1>{{ name }}</h1>
<div id=list_title><h1>{{ name }}</h1></div>
<div id=list_menu>
{% if upload %}
<a href="{{ url_for('send', name=name) }}">+ upload</a>
<form action={{ url_for('upload') }} method=post enctype=multipart/form-data>
<input type=hidden name=name value="{{ name|safe }}" />
<p><input type=file name=file>
<input type=submit value=Upload>
</form>
<div id=list_upload>
<form action={{ url_for('upload') }} method=post enctype=multipart/form-data>
<input type=hidden name=name value="{{ name|safe }}" />
<input type=file name=file>
<input type=submit value=Upload>
</form>
</div>
{% else %}
Grayed out + upload
<div id=list_upload>
<input type=file name=file disabled>
<input type=submit value=Upload disabled>
</div>
{% endif %}
<br>
<div id=list_public>
{% if public %}
Share is public
Share is <a href="{{ url_for('index') }}">public</a>
{% else %}
Share is private
{% endif %}
<br>
</div>
<div id=list_expire>
{% if expire %}
Share expires {{ expire }}
{% else %}
Share never expires
{% endif %}
<br>
<table class=entriesall>
<tr>
<th>name
<th>size
<th>mtime
</tr>
</div>
</div>
<div class=clear></div>
<table class="sortable" id="list_table">
<thead>
<tr>
<th>Name
<th class=td_right>Size
<th>Mod.Time
</tr>
</thead>
<tbody>
{% for entry in entries %}
<tr>
<td><a href="{{ url_for('download_file', name = name, filename = entry.name) }}">{{ entry.name }}</a>
<td>{{ entry.size|safe }}
<td class=td_right>{{ entry.size|safe }}
<td>{{ entry.mtime|safe }}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}