From 9fab393758f1100d8e79a9db35f0efc0a76dba5f Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Thu, 14 Jan 2021 16:56:47 +0500 Subject: [PATCH] Draw a better border around the upload attachment form --- templates/asset.qtpl.go | 1 + templates/default.css | 1 + templates/http_readers.qtpl | 5 ++-- templates/http_readers.qtpl.go | 47 +++++++++++++++++----------------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/templates/asset.qtpl.go b/templates/asset.qtpl.go index ce8b514..95106bc 100644 --- a/templates/asset.qtpl.go +++ b/templates/asset.qtpl.go @@ -71,6 +71,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr .navi-title a {text-decoration:none; } .navi-title__separator { margin: 0 .25rem; } .navi-title__colon { margin-right: .5rem; } +.upload-amnt { clear: both; border: #eee 1px solid; padding: .5rem; border-radius: .25rem; } .img-gallery { text-align: center; margin-top: .25rem; margin-bottom: .25rem; } .img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; } diff --git a/templates/default.css b/templates/default.css index 44030bf..b19484c 100644 --- a/templates/default.css +++ b/templates/default.css @@ -46,6 +46,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr .navi-title a {text-decoration:none; } .navi-title__separator { margin: 0 .25rem; } .navi-title__colon { margin-right: .5rem; } +.upload-amnt { clear: both; border: #eee 1px solid; padding: .5rem; border-radius: .25rem; } .img-gallery { text-align: center; margin-top: .25rem; margin-bottom: .25rem; } .img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; } diff --git a/templates/http_readers.qtpl b/templates/http_readers.qtpl index 6d7f861..cb63f5e 100644 --- a/templates/http_readers.qtpl +++ b/templates/http_readers.qtpl @@ -47,16 +47,15 @@ If `contents` == "", a helpful message is shown instead. {% endif %} -
{% if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" %}
+ method="post" enctype="multipart/form-data" + class="upload-amnt">
-
{% endif %}