Added option to set the title link location

This commit is contained in:
Reuh 2017-02-07 22:17:46 +01:00
parent 24c122ec08
commit c7b60faf18
2 changed files with 5 additions and 3 deletions

View file

@ -232,8 +232,8 @@ httpd.start(config.address or "*", config.port or 8155, { -- Pages
#topbar input[type=submit] { cursor: pointer; width: 8rem; }
#topbar #vrel { font-size: 1.4rem; float: right; }
</style><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><form method=POST action=/p enctype=multipart/form-data><input name=web type=hidden value=on>
<div id=topbar><span id=controls>expires in <input name=lifetime type=number min=1 max=]]..math.floor(maxLifetime/3600)..[[ value=]]..math.floor(defaultLifetime/3600)..
[[> hours (<input name=burnOnRead type=checkbox>burn on read) <input name=syntax type=text placeholder=syntax> (or send a file <input name=file type=file>) <input type=submit value=post></span><a id=vrel href=/ title=0.1.6>vrel</a></div>
<div id=topbar><span id=controls>expires in <input name=lifetime type=number min=1 max=]]..math.floor(maxLifetime/3600)..[[ value=]]..math.floor(defaultLifetime/3600)..[[> hours (<input name=burnOnRead type=checkbox>burn on read)
<input name=syntax type=text placeholder=syntax> (or send a file <input name=file type=file>) <input type=submit value=post></span><a id=vrel href="]]..(config.titleLink or "/")..[[" title=0.1.6>vrel</a></div>
<textarea name=data autofocus placeholder="paste your text here"></textarea>
</form></body></html>]] }
else local paste = get(name:match("^[^.]+"), request) or { data = "paste not found", syntax = "text", expire = os.time() }