diff options
author | 6543 <6543@obermui.de> | 2024-11-27 05:41:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-27 05:41:06 +0100 |
commit | 846f6187168c807e1353d46d5d2260bf077b43cd (patch) | |
tree | c3c36ad22c01cdaeaa71fd5e7e9fd0cb7738538f /templates/repo | |
parent | 3fc1bbe971db0b1591d32c4f561fdccc9c34daf4 (diff) | |
download | gitea-846f6187168c807e1353d46d5d2260bf077b43cd.tar.gz gitea-846f6187168c807e1353d46d5d2260bf077b43cd.zip |
Add priority to protected branch (#32286)
## Solves
Currently for rules to re-order them you have to alter the creation
date. so you basicly have to delete and recreate them in the right
order. This is more than just inconvinient ...
## Solution
Add a new col for prioritization
## Demo WebUI Video
https://github.com/user-attachments/assets/92182a31-9705-4ac5-b6e3-9bb74108cbd1
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/settings/branches.tmpl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl index 6f070ba61c..57d9f2c5a8 100644 --- a/templates/repo/settings/branches.tmpl +++ b/templates/repo/settings/branches.tmpl @@ -37,9 +37,12 @@ </h4> <div class="ui attached segment"> - <div class="flex-list"> + <div class="flex-list" id="protected-branches-list" data-update-priority-url="{{$.Repository.Link}}/settings/branches/priority"> {{range .ProtectedBranches}} - <div class="flex-item tw-items-center"> + <div class="flex-item tw-items-center item" data-id="{{.ID}}" > + <div class="drag-handle tw-cursor-grab"> + {{svg "octicon-grabber" 16}} + </div> <div class="flex-item-main"> <div class="flex-item-title"> <div class="ui basic primary label">{{.RuleName}}</div> |