From fe078ed994622b11d70d3501405c10189fccf8bb Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 7 Feb 2019 00:46:57 +0000 Subject: [PATCH] Rewrite #nXXX to #LXXX in incoming gitea urls We can't rewrite hashes with mod_rewrite, as they are client-side and are not sent to the server. Instead, put in a javascript snippet to rewrite them in the format that gitea is looking for. We only need to handle single lines, as cgit doesn't handle ranges. Change-Id: I6226e420838a88276a86e406c40f6707eb090310 --- docker/gitea/custom/templates/repo/header.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/gitea/custom/templates/repo/header.tmpl b/docker/gitea/custom/templates/repo/header.tmpl index 0b5dac777f..439047dfb9 100644 --- a/docker/gitea/custom/templates/repo/header.tmpl +++ b/docker/gitea/custom/templates/repo/header.tmpl @@ -1,4 +1,7 @@
+ {{with .Repository}}