|
|
@ -43,23 +43,22 @@ |
|
|
|
{{$entry := index $item 0}} |
|
|
|
{{$entry := index $item 0}} |
|
|
|
{{$commit := index $item 1}} |
|
|
|
{{$commit := index $item 1}} |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
|
|
|
|
<td class="name four wide"> |
|
|
|
|
|
|
|
<span class="truncate"> |
|
|
|
{{if $entry.IsSubModule}} |
|
|
|
{{if $entry.IsSubModule}} |
|
|
|
<td> |
|
|
|
|
|
|
|
{{svg "octicon-file-submodule" 16}} |
|
|
|
{{svg "octicon-file-submodule" 16}} |
|
|
|
{{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} |
|
|
|
{{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} |
|
|
|
{{if $refURL}} |
|
|
|
{{if $refURL}} |
|
|
|
<a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a> |
|
|
|
<a class="flex-0" href="{{$refURL}}">{{$entry.Name}}</a><span class="at">@</span><a class="flex-1" href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{$entry.Name}} @ {{ShortSha $commit.RefID}} |
|
|
|
{{$entry.Name}}<span class="at">@</span>{{ShortSha $commit.RefID}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</td> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<td class="name four wide"> |
|
|
|
|
|
|
|
{{if $entry.IsDir}} |
|
|
|
{{if $entry.IsDir}} |
|
|
|
{{$subJumpablePathName := $entry.GetSubJumpablePathName}} |
|
|
|
{{$subJumpablePathName := $entry.GetSubJumpablePathName}} |
|
|
|
{{$subJumpablePath := SubJumpablePath $subJumpablePathName}} |
|
|
|
{{$subJumpablePath := SubJumpablePath $subJumpablePathName}} |
|
|
|
{{svg "octicon-file-directory" 16}} |
|
|
|
{{svg "octicon-file-directory" 16}} |
|
|
|
<a href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
|
|
|
<a class="flex-1" href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
|
|
|
{{if eq (len $subJumpablePath) 2}} |
|
|
|
{{if eq (len $subJumpablePath) 2}} |
|
|
|
<span class="jumpable-path">{{index $subJumpablePath 0}}</span>{{index $subJumpablePath 1}} |
|
|
|
<span class="jumpable-path">{{index $subJumpablePath 0}}</span>{{index $subJumpablePath 1}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
@ -68,12 +67,15 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} |
|
|
|
{{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} |
|
|
|
<a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a> |
|
|
|
<a class="flex-1" href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</td> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</td> |
|
|
|
<td class="message nine wide"> |
|
|
|
<td class="message nine wide"> |
|
|
|
<a href="{{$.RepoLink}}/commit/{{$commit.ID}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a> |
|
|
|
<span class="truncate"> |
|
|
|
|
|
|
|
<a class="flex-1" href="{{$.RepoLink}}/commit/{{$commit.ID}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a> |
|
|
|
|
|
|
|
</span> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td class="text right age three wide">{{TimeSince $commit.Committer.When $.Lang}}</td> |
|
|
|
<td class="text right age three wide">{{TimeSince $commit.Committer.When $.Lang}}</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|