From 3845815c122255cb4fec7bd4d823524cece20bf2 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Dec 2020 11:59:04 +0100 Subject: [PATCH 1/3] chore: a take on head_navbar links --- custom/templates/base/head_navbar.tmpl | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/custom/templates/base/head_navbar.tmpl b/custom/templates/base/head_navbar.tmpl index a6643ef..ca2bd44 100644 --- a/custom/templates/base/head_navbar.tmpl +++ b/custom/templates/base/head_navbar.tmpl @@ -1,7 +1,7 @@ - {{.i18n.Tr "licenses"}} - {{if .EnableSwagger}}API{{end}} + {{.i18n.Tr "licenses"}} + {{if .EnableSwagger}}API{{end}} {{template "custom/extra_links_footer" .}} {{if (or .ShowFooterVersion .PageIsAdmin)}}{{GoVer}}{{end}} -- 2.47.1 From 9252ab99d220099ee6f475be6537df009688be6c Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Dec 2020 12:10:39 +0100 Subject: [PATCH 3/3] chore: a take on pwa/manifest_json.tmpl * since it's not a true offline-capable PWA, this should not break anything (network requests are still sent out) but hey, who knows really --- custom/templates/pwa/manifest_json.tmpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom/templates/pwa/manifest_json.tmpl b/custom/templates/pwa/manifest_json.tmpl index 3dcad02..e409a79 100644 --- a/custom/templates/pwa/manifest_json.tmpl +++ b/custom/templates/pwa/manifest_json.tmpl @@ -3,28 +3,28 @@ "name": "git.dotya.ml", "icons": [ { - "src": "{{StaticUrlPrefix}}/img/gitea-lg.png", + "src": "/img/gitea-lg.png", "type": "image/png", "sizes": "880x880" }, { - "src": "{{StaticUrlPrefix}}/img/gitea-sm.png", + "src": "/img/gitea-sm.png", "type": "image/png", "sizes": "120x120" }, { - "src": "{{StaticUrlPrefix}}/img/gitea-512.png", + "src": "/img/gitea-512.png", "type": "image/png", "sizes": "512x512" }, { - "src": "{{StaticUrlPrefix}}/img/gitea-192.png", + "src": "/img/gitea-192.png", "type": "image/png", "sizes": "192x192" } ], - "start_url": "{{AppSubUrl}}/", - "scope": "{{AppSubUrl}}/", + "start_url": "/", + "scope": "/", "background_color": "#FAFAFA", "display": "standalone", "theme_color": "{{ThemeColorMetaTag}}" -- 2.47.1