File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
{{ $r:= List .Commits}}
2
2
{{ $index := 0}}
3
+ <div class="timeline-item commits-list">
3
4
{{range $r}}
4
5
{{ $tag := printf "%s-%d" $.HashTag $index }}
5
6
{{ $index = Add $index 1}}
6
- <div class="timeline-item event small-line-spacing " id="{{$tag}}">
7
+ <div class="singular-commit " id="{{$tag}}">
7
8
<span class="badge badge-commit">{{svg "octicon-git-commit" 16}}</span>
8
9
{{if .User}}
9
10
<a class="ui avatar image" href="{{AppSubUrl}}/{{.User.Name}}"><img src="{{.User.RelAvatarLink}}" alt=""/></a>
42
43
43
44
<span class="message-wrapper">
44
45
{{ $commitLink:= printf "%s/%s/%s/commit/%s" AppSubUrl $.Issue.PullRequest.BaseRepo.OwnerName $.Issue.PullRequest.BaseRepo.Name .ID }}
45
- <span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
46
+ <span class="mono commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject .Message ($.Issue.PullRequest.BaseRepo.Link|Escape) $commitLink $.Issue.PullRequest.BaseRepo.ComposeMetas}}</span>
46
47
</span>
47
48
{{if IsMultilineCommitMessage .Message}}
48
49
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
55
56
{{end}}
56
57
</div>
57
58
{{end}}
59
+ </div>
Original file line number Diff line number Diff line change 602
602
<img src="{{.Poster.RelAvatarLink}}">
603
603
</a>
604
604
<span class="text grey">
605
- <a href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
605
+ <a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
606
606
{{ if .IsForcePush }}
607
607
{{$.i18n.Tr "repo.issues.force_push_codes" $.Issue.PullRequest.HeadBranch (ShortSha .OldCommit) ($.Issue.Repo.CommitLink .OldCommit) (ShortSha .NewCommit) ($.Issue.Repo.CommitLink .NewCommit) $createdStr | Safe}}
608
608
{{else}}
Original file line number Diff line number Diff line change 751
751
}
752
752
}
753
753
754
- & :first-child {
754
+ & :first-child : not ( .commit ) {
755
755
padding-top : 0 !important ;
756
756
}
757
757
758
- & :last-child {
758
+ & :last-child : not ( .commit ) {
759
759
padding-bottom : 0 !important ;
760
760
}
761
761
807
807
line-height : 30px ;
808
808
}
809
809
810
- & .event.small-line-spacing {
811
- padding : 2px 0 0 15px ;
810
+ & .commits-list {
811
+ padding-left : 15px ;
812
+ padding-top : 0 ;
812
813
}
813
814
814
815
& .event > .commit-status-link {
You can’t perform that action at this time.
0 commit comments