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 /web_src/js | |
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 'web_src/js')
-rw-r--r-- | web_src/js/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index e55e2febe0..dd7032eb84 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -759,6 +759,15 @@ async function initRepository() { }); } + // Commit statuses + $('.commit-statuses-trigger').each(function () { + $(this) + .popup({ + on: 'click', + position: ($('.repository.file.list').length > 0 ? 'right center' : 'left center'), + }); + }); + // File list and commits if ($('.repository.file.list').length > 0 || ('.repository.commits').length > 0) { initFilterBranchTagDropdown('.choose.reference .dropdown'); |