mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Draw a better border around the upload attachment form
This commit is contained in:
parent
f96c470542
commit
9fab393758
@ -71,6 +71,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr
|
|||||||
.navi-title a {text-decoration:none; }
|
.navi-title a {text-decoration:none; }
|
||||||
.navi-title__separator { margin: 0 .25rem; }
|
.navi-title__separator { margin: 0 .25rem; }
|
||||||
.navi-title__colon { margin-right: .5rem; }
|
.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 { text-align: center; margin-top: .25rem; margin-bottom: .25rem; }
|
||||||
.img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; }
|
.img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; }
|
||||||
|
@ -46,6 +46,7 @@ article pre.codeblock {background-color:#eee; padding:.5rem; white-space: pre-wr
|
|||||||
.navi-title a {text-decoration:none; }
|
.navi-title a {text-decoration:none; }
|
||||||
.navi-title__separator { margin: 0 .25rem; }
|
.navi-title__separator { margin: 0 .25rem; }
|
||||||
.navi-title__colon { margin-right: .5rem; }
|
.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 { text-align: center; margin-top: .25rem; margin-bottom: .25rem; }
|
||||||
.img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; }
|
.img-gallery_many-images { background-color: #eee; border-radius: .25rem; padding: .5rem; }
|
||||||
|
@ -47,16 +47,15 @@ If `contents` == "", a helpful message is shown instead.
|
|||||||
<a class="prevnext__el prevnext__next" href="/page/{%s nextHyphaName %}" rel="next">{%s path.Base(nextHyphaName) %} →</a>
|
<a class="prevnext__el prevnext__next" href="/page/{%s nextHyphaName %}" rel="next">{%s path.Base(nextHyphaName) %} →</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
<hr class="page-separator"/>
|
|
||||||
{% if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" %}
|
{% if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" %}
|
||||||
<form action="/upload-binary/{%s hyphaName %}"
|
<form action="/upload-binary/{%s hyphaName %}"
|
||||||
method="post" enctype="multipart/form-data">
|
method="post" enctype="multipart/form-data"
|
||||||
|
class="upload-amnt">
|
||||||
<label for="upload-binary__input">Upload a new attachment</label>
|
<label for="upload-binary__input">Upload a new attachment</label>
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="upload-binary__input" name="binary"/>
|
<input type="file" id="upload-binary__input" name="binary"/>
|
||||||
<input type="submit"/>
|
<input type="submit"/>
|
||||||
</form>
|
</form>
|
||||||
<hr/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<aside>
|
<aside>
|
||||||
{%s= tree %}
|
{%s= tree %}
|
||||||
|
@ -225,63 +225,62 @@ func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, navi
|
|||||||
//line templates/http_readers.qtpl:48
|
//line templates/http_readers.qtpl:48
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</section>
|
</section>
|
||||||
<hr class="page-separator"/>
|
|
||||||
`)
|
`)
|
||||||
//line templates/http_readers.qtpl:51
|
//line templates/http_readers.qtpl:50
|
||||||
if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" {
|
if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" {
|
||||||
//line templates/http_readers.qtpl:51
|
//line templates/http_readers.qtpl:50
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<form action="/upload-binary/`)
|
<form action="/upload-binary/`)
|
||||||
//line templates/http_readers.qtpl:52
|
//line templates/http_readers.qtpl:51
|
||||||
qw422016.E().S(hyphaName)
|
qw422016.E().S(hyphaName)
|
||||||
//line templates/http_readers.qtpl:52
|
//line templates/http_readers.qtpl:51
|
||||||
qw422016.N().S(`"
|
qw422016.N().S(`"
|
||||||
method="post" enctype="multipart/form-data">
|
method="post" enctype="multipart/form-data"
|
||||||
|
class="upload-amnt">
|
||||||
<label for="upload-binary__input">Upload a new attachment</label>
|
<label for="upload-binary__input">Upload a new attachment</label>
|
||||||
<br>
|
<br>
|
||||||
<input type="file" id="upload-binary__input" name="binary"/>
|
<input type="file" id="upload-binary__input" name="binary"/>
|
||||||
<input type="submit"/>
|
<input type="submit"/>
|
||||||
</form>
|
</form>
|
||||||
<hr/>
|
|
||||||
`)
|
`)
|
||||||
//line templates/http_readers.qtpl:60
|
//line templates/http_readers.qtpl:59
|
||||||
}
|
}
|
||||||
//line templates/http_readers.qtpl:60
|
//line templates/http_readers.qtpl:59
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<aside>
|
<aside>
|
||||||
`)
|
`)
|
||||||
//line templates/http_readers.qtpl:62
|
//line templates/http_readers.qtpl:61
|
||||||
qw422016.N().S(tree)
|
qw422016.N().S(tree)
|
||||||
//line templates/http_readers.qtpl:62
|
//line templates/http_readers.qtpl:61
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</aside>
|
</aside>
|
||||||
</main>
|
</main>
|
||||||
`)
|
`)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
}
|
}
|
||||||
|
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string) {
|
func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string) {
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName)
|
StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
}
|
}
|
||||||
|
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string) string {
|
func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string) string {
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName)
|
WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
return qs422016
|
return qs422016
|
||||||
//line templates/http_readers.qtpl:65
|
//line templates/http_readers.qtpl:64
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user