Use base url in views

This commit is contained in:
Alex Ling
2020-05-23 12:14:29 +00:00
parent 60d4cee0a9
commit 8fe2f3b4cc
14 changed files with 57 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ IMGS_PER_PAGE = 5
UPLOAD_URL_PREFIX = "/uploads"
macro layout(name)
base_url = Config.current.base_url
begin
cookie = env.request.cookies.find { |c| c.name == "token" }
is_admin = false