templates/repo: improve symlink file icon in list view (#4237)

master
Unknwon 2017-04-07 13:51:10 -04:00
parent fda4b1106e
commit 5f8ec0dc8b
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 5 additions and 1 deletions

View File

@ -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}}