Browse Source

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

Unknwon 7 years ago
parent
commit
5f8ec0dc8b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      templates/repo/view_list.tmpl

+ 5 - 1
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}}