diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-12-20 04:13:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 11:13:12 +0800 |
commit | f3c4baa84b8fa7afb3eab137b4c5e3544bd9e761 (patch) | |
tree | b45be56f4fc8a5d1da04649ab2baa7a6a19eefe9 /templates/shared | |
parent | 029836c34c75a277e1e1309f590905a71e5d312a (diff) | |
download | gitea-f3c4baa84b8fa7afb3eab137b4c5e3544bd9e761.tar.gz gitea-f3c4baa84b8fa7afb3eab137b4c5e3544bd9e761.zip |
Show dropdown with all statuses for commit (#13977)
* Show dropdown with all statuses for commit
* Use popups
* Remove unnecessary change
* Style popup
* Use divided list
* As per @silverwind
* Refactor GetLastCommitStatus
* Missing dropdown on repo home and commit page
* Fix tests
* Make status icon be a part of a link on PR list
* Fix missing translation call
* Indent fix
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/shared')
-rw-r--r-- | templates/shared/issuelist.tmpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl index 62f55f6c40..adb319a644 100644 --- a/templates/shared/issuelist.tmpl +++ b/templates/shared/issuelist.tmpl @@ -31,12 +31,14 @@ </div> <div class="issue-item-main f1 fc df"> <div class="issue-item-top-row df ac fw"> - <a class="title mr-3" href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}">{{RenderEmoji .Title}}</a> - {{if .IsPull }} - {{if (index $.CommitStatus .PullRequest.ID)}} - {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}} + <a class="title mr-3" href="{{if .HTMLURL}}{{.HTMLURL}}{{else}}{{$.Link}}/{{.Index}}{{end}}"> + {{RenderEmoji .Title}} + {{if .IsPull }} + {{if (index $.CommitStatus .PullRequest.ID)}} + {{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}} + {{end}} {{end}} - {{end}} + </a> <span class="labels-list"> {{range .Labels}} <a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}{{if ne $.listType "milestone"}}&milestone={{$.MilestoneID}}{{end}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a> |