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