summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-02-21 23:04:20 +0000
committerGitHub <noreply@github.com>2020-02-21 17:04:20 -0600
commitc8d1c3812980573eae0a1ecd5e84c8b44457c3e4 (patch)
tree29ea510382c64bd6355588a8ac03255425338f33 /templates
parent6b019724f3294fd04b9a7c4d3a3e60107977eb64 (diff)
downloadgitea-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.tmpl11
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") }}