From c7b60faf18726fd005c9d7272db8dd43555f7fe6 Mon Sep 17 00:00:00 2001 From: Reuh Date: Tue, 7 Feb 2017 22:17:46 +0100 Subject: [PATCH] Added option to set the title link location --- config.default.lua | 4 +++- vrel.lua | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.default.lua b/config.default.lua index d9b3d1e..ee20ce4 100644 --- a/config.default.lua +++ b/config.default.lua @@ -28,5 +28,7 @@ return { -- Cached pages lifetime cacheDuration = 3600, -- 1 hour -- Time interval to remove expired cache entries (seconds) - cacheCleanInterval = 3600 -- 1 hour + cacheCleanInterval = 3600, -- 1 hour + -- Tile link location (the big "vrel" on the top right of the page) + titleLink = "/" } diff --git a/vrel.lua b/vrel.lua index cf1b752..d240550 100644 --- a/vrel.lua +++ b/vrel.lua @@ -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; }
-
expires in hours (burn on read) (or send a file ) vrel
+
expires in hours (burn on read) + (or send a file ) vrel
]] } else local paste = get(name:match("^[^.]+"), request) or { data = "paste not found", syntax = "text", expire = os.time() }