Skip to content

Commit

Permalink
rename IsTippy into IsPopup
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 committed Sep 28, 2023
1 parent 6c38900 commit e8ddbc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/repo/commit_statuses.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{template "repo/pulls/status" (dict
"CommitStatuses" .Statuses
"CommitStatus" .Status
"IsTippy" true
"IsPopup" true
"is_context_required" .root.is_context_required
)}}
</div>
Expand Down
6 changes: 3 additions & 3 deletions templates/repo/pulls/status.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Template Attributes:
* CommitStatus: summary of all commit status state
* CommitStatuses: all commit status elements
* IsTippy: whether this template is the content of tippy
* IsPopup: whether this template is in a popup
* is_context_required: Used in pull request commit status check table
*/}}

{{if .CommitStatus}}
<div class="{{if .IsTippy}}tippy-commit-status{{else}}pr-commit-status{{end}}">
<div class="{{if .IsPopup}}tippy-commit-status{{else}}pr-commit-status{{end}}">
<div class="ui attached header top">
{{if eq .CommitStatus.State "pending"}}
{{ctx.Locale.Tr "repo.pulls.status_checking"}}
Expand All @@ -23,7 +23,7 @@ Template Attributes:
{{ctx.Locale.Tr "repo.pulls.status_checking"}}
{{end}}

{{if not .IsTippy}}
{{if not .IsPopup}}
<div class="ui right">
<a class="hide-all-checks muted"
data-show-all="{{ctx.Locale.Tr "repo.pulls.status_checks_show_all"}}"
Expand Down

0 comments on commit e8ddbc9

Please sign in to comment.