22Template Attributes:
33* CommitStatus: summary of all commit status state
44* CommitStatuses: all commit status elements
5- * IsPopup : whether this template is in a popup
5+ * ShowHideChecks : whether use a button to show/hide the checks
66* is_context_required: Used in pull request commit status check table
77*/}}
88
99{{if .CommitStatus}}
10- <div class="{{if .IsPopup}}tippy- commit-status{{else}}pr-commit-status{{end}}"{{if not .IsPopup}} data-toggled="true"{{end}} >
11- <div class="ui attached header top ">
10+ <div class="commit-status-panel" >
11+ <div class="ui top attached header commit-status-header ">
1212 {{if eq .CommitStatus.State "pending"}}
1313 {{ctx.Locale.Tr "repo.pulls.status_checking"}}
1414 {{else if eq .CommitStatus.State "success"}}
@@ -23,19 +23,19 @@ Template Attributes:
2323 {{ctx.Locale.Tr "repo.pulls.status_checking"}}
2424 {{end}}
2525
26- {{if not .IsPopup }}
26+ {{if .ShowHideChecks }}
2727 <div class="ui right">
28- <button class="hide-all -checks btn interact-fg"
28+ <button class="commit-status-hide -checks btn interact-fg"
2929 data-show-all="{{ctx.Locale.Tr "repo.pulls.status_checks_show_all"}}"
3030 data-hide-all="{{ctx.Locale.Tr "repo.pulls.status_checks_hide_all"}}">
3131 {{ctx.Locale.Tr "repo.pulls.status_checks_hide_all"}}</button>
3232 </div>
3333 {{end}}
3434 </div>
3535
36- <div class="ui attached segment commit-status-list">
36+ <div class="commit-status-list">
3737 {{range .CommitStatuses}}
38- <div class="ui attached segment commit-status-item">
38+ <div class="commit-status-item">
3939 {{template "repo/commit_status" .}}
4040 <span class="status-context text truncate">{{.Context}} <span class="text light-2">{{.Description}}</span></span>
4141 <div class="ui status-details">
0 commit comments