mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-17 19:41:06 +08:00
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:  On hover the link is shown: 
This commit is contained in:
parent
0a2b93d411
commit
7210f23fa0
@ -1,4 +1,4 @@
|
||||
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
|
||||
<div {{if .ReadmeInList}}id="readme" {{end}}class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
|
||||
{{- if .FileError}}
|
||||
<div class="ui error message">
|
||||
<div class="text left gt-whitespace-pre">{{.FileError}}</div>
|
||||
@ -13,7 +13,7 @@
|
||||
<div class="file-header-left gt-df gt-ac gt-py-3 gt-pr-4">
|
||||
{{if .ReadmeInList}}
|
||||
{{svg "octicon-book" 16 "gt-mr-3"}}
|
||||
<strong>{{.FileName}}</strong>
|
||||
<strong><a class="default-link muted" href="#readme">{{.FileName}}</a></strong>
|
||||
{{else}}
|
||||
{{template "repo/file_info" .}}
|
||||
{{end}}
|
||||
|
Loading…
Reference in New Issue
Block a user