diff options
author | zeripath <art27@cantab.net> | 2020-02-21 23:04:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 17:04:20 -0600 |
commit | c8d1c3812980573eae0a1ecd5e84c8b44457c3e4 (patch) | |
tree | 29ea510382c64bd6355588a8ac03255425338f33 /templates | |
parent | 6b019724f3294fd04b9a7c4d3a3e60107977eb64 (diff) | |
download | gitea-c8d1c3812980573eae0a1ecd5e84c8b44457c3e4.tar.gz gitea-c8d1c3812980573eae0a1ecd5e84c8b44457c3e4.zip |
Render READMEs in docs/ .gitea or .github from root (#10361)
* Render READMEs in docs/ .gitea or .github from root
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/view_file.tmpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index f1cf198dee..1405378bd7 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -2,10 +2,19 @@ <h4 class="file-header ui top attached header"> <div class="file-header-left"> {{if .ReadmeInList}} - <i class="book icon"></i> + {{if .FileIsSymlink}} + <i class="icons"><i class="book icon"></i><i class="bottom left corner tiny inverted share icon"></i></i> + {{else}} + <i class="book icon"></i> + {{end}} <strong>{{.FileName}}</strong> {{else}} <div class="file-info text grey normal mono"> + {{if .FileIsSymlink}} + <div class="file-info-entry"> + {{.i18n.Tr "repo.symbolic_link"}} + </div> + {{end}} {{if .NumLinesSet}} <div class="file-info-entry"> {{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }} |