Skip to content

Commit 04c3764

Browse files
committed
More efficient way
1 parent ad3b800 commit 04c3764

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

templates/repo/view_list.tmpl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@
3636
{{$entry.Name}} @ {{ShortSha $commit.RefId}}
3737
{{end}}
3838
</td>
39-
{{else if $entry.IsJumpableDir}}
40-
<td class="name">
41-
<span class="icon octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
42-
<a href="{{EscapePound $.BranchLink}}/{{EscapePound $.TreePath}}{{EscapePound $entry.JumpablePath}}{{EscapePound $entry.JumpableName}}"><span style="color:#ccc">{{$entry.JumpablePath}}</span>{{$entry.JumpableName}}</a>
43-
</td>
4439
{{else}}
4540
<td class="name">
46-
<span class="icon octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
47-
<a href="{{EscapePound $.BranchLink}}/{{EscapePound $.TreePath}}{{EscapePound $entry.Name}}">{{$entry.Name}}</a>
41+
<span class="icon octicon octicon-file-{{if or $entry.LastUniqueEntry.IsDir}}directory{{else}}text{{end}}"></span>
42+
<a href="{{EscapePound $.BranchLink}}/{{EscapePound $.TreePath}}{{EscapePound $entry.LastUniquePath}}{{EscapePound $entry.LastUniqueEntry.Name}}"><span style="color:#BBB">{{$entry.LastUniquePath}}</span>{{$entry.LastUniqueEntry.Name}}</a>
4843
</td>
4944
{{end}}
5045
<td class="message collapsing has-emoji">

0 commit comments

Comments
 (0)