From a065c91e9f95660aeb885e0affad7b3120cc37bf Mon Sep 17 00:00:00 2001 From: xtrafrancyz Date: Thu, 27 Apr 2017 14:50:15 +0300 Subject: [PATCH] Add big download button --- static/css/linx.css | 10 ++++++++++ templates/display/audio.html | 3 +++ templates/display/file.html | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/static/css/linx.css b/static/css/linx.css index 193cbec..5d7cfef 100644 --- a/static/css/linx.css +++ b/static/css/linx.css @@ -285,6 +285,16 @@ body { } /* Content display {{{ */ +.download-btn { + padding: 5px 20px; + display: block; + margin: 5px auto; + text-align: center; + font-size: 30px; + border: dashed 2px !important; + width: 180px; +} + .display-audio, .display-file { width: 500px; diff --git a/templates/display/audio.html b/templates/display/audio.html index 689bab3..5e49f8a 100644 --- a/templates/display/audio.html +++ b/templates/display/audio.html @@ -5,5 +5,8 @@ Download it instead +
+ Download +
{% endblock %} diff --git a/templates/display/file.html b/templates/display/file.html index 5eeb424..346459a 100644 --- a/templates/display/file.html +++ b/templates/display/file.html @@ -2,7 +2,8 @@ {% block main %}
-

You are requesting {{ filename }}, click here to download.

+

You are requesting {{ filename }}, click below to download.

+ Download {% if files|length > 0 %}

Contents of the archive: