diff options
author | Unknwon <u@gogs.io> | 2017-04-07 13:51:10 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-07 13:51:10 -0400 |
commit | 5f8ec0dc8b36f7fb3203b694a95600540db93fea (patch) | |
tree | 76cbf21bec8735101da1d5e204cc3ed30df32931 /templates/repo/view_list.tmpl | |
parent | fda4b1106e4fccfd715eb35421d6814719cbf42c (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.tmpl | 6 |
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}} |