|
8 | 8 | {{if .LatestCommitUser}} |
9 | 9 | {{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "gt-mr-2"}} |
10 | 10 | {{if .LatestCommitUser.FullName}} |
11 | | - <a class="muted author-wrapper" title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a> |
| 11 | + <a class="muted author-wrapper" data-tooltip-content title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a> |
12 | 12 | {{else}} |
13 | | - <a class="muted author-wrapper" title="{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a> |
| 13 | + <a class="muted author-wrapper" data-tooltip-content title="{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{if .LatestCommit.Author}}{{.LatestCommit.Author.Name}}{{else}}{{.LatestCommitUser.Name}}{{end}}</strong></a> |
14 | 14 | {{end}} |
15 | 15 | {{else}} |
16 | 16 | {{if .LatestCommit.Author}} |
17 | 17 | {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "gt-mr-2"}} |
18 | | - <span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span> |
| 18 | + <span class="author-wrapper" data-tooltip-content title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span> |
19 | 19 | {{end}} |
20 | 20 | {{end}} |
21 | 21 | <a rel="nofollow" class="ui sha label {{if .LatestCommit.Signature}} isSigned {{if .LatestCommitVerification.Verified}} isVerified{{if eq .LatestCommitVerification.TrustStatus "trusted"}}{{else if eq .LatestCommitVerification.TrustStatus "untrusted"}}Untrusted{{else}}Unmatched{{end}}{{else if .LatestCommitVerification.Warning}} isWarning{{end}}{{end}}" href="{{.RepoLink}}/commit/{{PathEscape .LatestCommit.ID.String}}"> |
|
26 | 26 | </a> |
27 | 27 | {{template "repo/commit_statuses" dict "Status" .LatestCommitStatus "Statuses" .LatestCommitStatuses}} |
28 | 28 | {{$commitLink:= printf "%s/commit/%s" .RepoLink (PathEscape .LatestCommit.ID.String)}} |
29 | | - <span class="grey commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject $.Context .LatestCommit.Message $commitLink ($.Repository.ComposeMetas ctx)}}</span> |
| 29 | + <span class="grey commit-summary" data-tooltip-content title="{{.LatestCommit.Summary}}"><span class="message-wrapper">{{RenderCommitMessageLinkSubject $.Context .LatestCommit.Message $commitLink ($.Repository.ComposeMetas ctx)}}</span> |
30 | 30 | {{if IsMultilineCommitMessage .LatestCommit.Message}} |
31 | 31 | <button class="ui button js-toggle-commit-body ellipsis-button" aria-expanded="false">...</button> |
32 | 32 | <pre class="commit-body gt-hidden">{{RenderCommitBody $.Context .LatestCommit.Message ($.Repository.ComposeMetas ctx)}}</pre> |
|
62 | 62 | {{if $entry.IsDir}} |
63 | 63 | {{$subJumpablePathName := $entry.GetSubJumpablePathName}} |
64 | 64 | {{svg "octicon-file-directory-fill"}} |
65 | | - <a class="muted" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" title="{{$subJumpablePathName}}"> |
| 65 | + <a class="muted" href="{{$.TreeLink}}/{{PathEscapeSegments $subJumpablePathName}}" data-tooltip-content title="{{$subJumpablePathName}}"> |
66 | 66 | {{$subJumpablePathFields := StringUtils.Split $subJumpablePathName "/"}} |
67 | 67 | {{$subJumpablePathFieldLast := (Eval (len $subJumpablePathFields) "-" 1)}} |
68 | 68 | {{if eq $subJumpablePathFieldLast 0}} |
|
74 | 74 | </a> |
75 | 75 | {{else}} |
76 | 76 | {{svg (printf "octicon-%s" (EntryIcon $entry))}} |
77 | | - <a class="muted" href="{{$.TreeLink}}/{{PathEscapeSegments $entry.Name}}" title="{{$entry.Name}}">{{$entry.Name}}</a> |
| 77 | + {{$symLinkEntry := $entry}} |
| 78 | + {{if $entry.IsLink}}{{$symLinkEntry = $entry.TryFollowingLinks}}{{end}} |
| 79 | + <a class="muted" href="{{$.TreeLink}}/{{$symLinkEntry.Name}}" data-tooltip-content title="{{$entry.Name}}">{{$entry.Name}}</a> |
78 | 80 | {{end}} |
79 | 81 | {{end}} |
80 | 82 | </span> |
|
0 commit comments