Browse Source

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

pull/3974/merge
Unknwon 8 years ago
parent
commit
5f8ec0dc8b
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 6
      templates/repo/view_list.tmpl

6
templates/repo/view_list.tmpl

@ -39,7 +39,11 @@
</td> </td>
{{else}} {{else}}
<td class="name"> <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> <a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}">{{$entry.Name}}</a>
</td> </td>
{{end}} {{end}}

Loading…
Cancel
Save