From 7210f23fa0f11da093b307029d7ab91ed40807fb Mon Sep 17 00:00:00 2001 From: sebastian-sauer Date: Thu, 19 Oct 2023 00:59:46 +0200 Subject: [PATCH] Add link for repositories README file (#27684) this allows to deep link to the readme section of a repository. fixes #27641 Screenshots: No changes on initial display: ![image](https://github.com/go-gitea/gitea/assets/1135157/efbef50e-c24b-4cca-b19f-9092e70b5a5f) On hover the link is shown: ![image](https://github.com/go-gitea/gitea/assets/1135157/c8dff2b8-31dc-4b7b-96d0-27642318483d) --- templates/repo/view_file.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 0064da9632..53e889fefc 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -1,4 +1,4 @@ -
+
{{- if .FileError}}
{{.FileError}}
@@ -13,7 +13,7 @@
{{if .ReadmeInList}} {{svg "octicon-book" 16 "gt-mr-3"}} - {{.FileName}} + {{.FileName}} {{else}} {{template "repo/file_info" .}} {{end}}