|
43 | 43 | {{$entry := index $item 0}}
|
44 | 44 | {{$commit := index $item 1}}
|
45 | 45 | <tr>
|
46 |
| - {{if $entry.IsSubModule}} |
47 |
| - <td> |
48 |
| - {{svg "octicon-file-submodule" 16}} |
49 |
| - {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} |
50 |
| - {{if $refURL}} |
51 |
| - <a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a> |
| 46 | + <td class="name four wide"> |
| 47 | + <span class="truncate"> |
| 48 | + {{if $entry.IsSubModule}} |
| 49 | + {{svg "octicon-file-submodule" 16}} |
| 50 | + {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} |
| 51 | + {{if $refURL}} |
| 52 | + <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> |
| 53 | + {{else}} |
| 54 | + {{$entry.Name}}<span class="at">@</span>{{ShortSha $commit.RefID}} |
| 55 | + {{end}} |
52 | 56 | {{else}}
|
53 |
| - {{$entry.Name}} @ {{ShortSha $commit.RefID}} |
| 57 | + {{if $entry.IsDir}} |
| 58 | + {{$subJumpablePathName := $entry.GetSubJumpablePathName}} |
| 59 | + {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} |
| 60 | + {{svg "octicon-file-directory" 16}} |
| 61 | + <a class="flex-1" href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
| 62 | + {{if eq (len $subJumpablePath) 2}} |
| 63 | + <span class="jumpable-path">{{index $subJumpablePath 0}}</span>{{index $subJumpablePath 1}} |
| 64 | + {{else}} |
| 65 | + {{index $subJumpablePath 0}} |
| 66 | + {{end}} |
| 67 | + </a> |
| 68 | + {{else}} |
| 69 | + {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} |
| 70 | + <a class="flex-1" href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a> |
| 71 | + {{end}} |
54 | 72 | {{end}}
|
55 |
| - </td> |
56 |
| - {{else}} |
57 |
| - <td class="name four wide"> |
58 |
| - {{if $entry.IsDir}} |
59 |
| - {{$subJumpablePathName := $entry.GetSubJumpablePathName}} |
60 |
| - {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} |
61 |
| - {{svg "octicon-file-directory" 16}} |
62 |
| - <a href="{{EscapePound $.TreeLink}}/{{EscapePound $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
63 |
| - {{if eq (len $subJumpablePath) 2}} |
64 |
| - <span class="jumpable-path">{{index $subJumpablePath 0}}</span>{{index $subJumpablePath 1}} |
65 |
| - {{else}} |
66 |
| - {{index $subJumpablePath 0}} |
67 |
| - {{end}} |
68 |
| - </a> |
69 |
| - {{else}} |
70 |
| - {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} |
71 |
| - <a href="{{EscapePound $.TreeLink}}/{{EscapePound $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a> |
72 |
| - {{end}} |
73 |
| - </td> |
74 |
| - {{end}} |
| 73 | + </span> |
| 74 | + </td> |
75 | 75 | <td class="message nine wide">
|
76 |
| - <a href="{{$.RepoLink}}/commit/{{$commit.ID}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a> |
| 76 | + <span class="truncate"> |
| 77 | + <a class="flex-1" href="{{$.RepoLink}}/commit/{{$commit.ID}}" title="{{$commit.Summary}}">{{$commit.Summary | RenderEmoji}}</a> |
| 78 | + </span> |
77 | 79 | </td>
|
78 | 80 | <td class="text right age three wide">{{TimeSince $commit.Committer.When $.Lang}}</td>
|
79 | 81 | </tr>
|
|
0 commit comments