File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 9
9
</tr>
10
10
</thead>
11
11
<tbody class="commit-list">
12
+ {{$commitRepoLink := $.RepoLink}}{{if $.CommitRepoLink}}{{$commitRepoLink = $.CommitRepoLink}}{{end}}
12
13
{{range .Commits}}
13
14
<tr>
14
15
<td class="author">
41
42
{{end}}
42
43
{{end}}
43
44
{{if $.PageIsWiki}}
44
- <a href="{{$.RepoLink }}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
45
+ <a href="{{$commitRepoLink }}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
45
46
{{else if $.Reponame}}
46
- <a href="{{$.RepoLink }}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
47
+ <a href="{{$commitRepoLink }}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
47
48
{{else}}
48
49
<span class="{{$class}}">
49
50
{{end}}
62
63
{{if $.PageIsWiki}}
63
64
<span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary | RenderEmoji}}</span>
64
65
{{else }}
65
- {{ $commitLink:= printf "%s/commit/%s" $.RepoLink (PathEscape .ID.String) }}
66
- <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
66
+ {{ $commitLink:= printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String) }}
67
+ <span class="commit-summary {{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message $commitRepoLink $commitLink $.Repository.ComposeMetas}}</span>
67
68
{{end}}
68
69
</span>
69
70
{{if IsMultilineCommitMessage .Message}}
70
71
<button class="ui button ellipsis-button" aria-expanded="false">...</button>
71
72
{{end}}
72
73
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $}}
73
74
{{if IsMultilineCommitMessage .Message}}
74
- <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre>
75
+ <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $commitRepoLink $.Repository.ComposeMetas}}</pre>
75
76
{{end}}
76
77
</td>
77
78
<td class="text right aligned">{{TimeSince .Author.When $.Lang}}</td>
You can’t perform that action at this time.
0 commit comments