aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-07 13:51:10 -0400
committerUnknwon <u@gogs.io>2017-04-07 13:51:10 -0400
commit5f8ec0dc8b36f7fb3203b694a95600540db93fea (patch)
tree76cbf21bec8735101da1d5e204cc3ed30df32931 /templates/repo/view_list.tmpl
parentfda4b1106e4fccfd715eb35421d6814719cbf42c (diff)
templates/repo: improve symlink file icon in list view (#4237)
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 6e246df5..93b9e0df 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -39,7 +39,11 @@
</td>
{{else}}
<td class="name">
- <span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
+ {{if $entry.IsLink}}
+ <span class="octicon octicon-file-symlink-file"></span>
+ {{else}}
+ <span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
+ {{end}}
<a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}">{{$entry.Name}}</a>
</td>
{{end}}