diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-19 01:33:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 17:33:12 +0000 |
commit | bfab129fb97479e2efaaa0ece7071e13d79629ed (patch) | |
tree | 57b839acc516c4a9c011a63dd3069f115379c350 /templates | |
parent | a5d0246fff8e95ed750d44b8a2d1c633e0fc9ef3 (diff) | |
download | gitea-bfab129fb97479e2efaaa0ece7071e13d79629ed.tar.gz gitea-bfab129fb97479e2efaaa0ece7071e13d79629ed.zip |
Fix label list divider (#25312)
We only needs 2 lines to hide the dividers.
```
$dropdownLabelFilter.dropdown('setting', {'hideDividers': 'empty'});
$dropdownLabelFilter.dropdown('refreshItems');
```
Other code blocks are refactored by the way.
![image](https://github.com/go-gitea/gitea/assets/2114189/74989996-fcea-4df4-b534-b06f7957939a)
![image](https://github.com/go-gitea/gitea/assets/2114189/ee3b3761-b96e-4fb5-b646-e9d3117e5f40)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 313f7d6e98..5c9a5937a1 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -102,12 +102,13 @@ <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_label"}}"> </div> <span class="info">{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}</span> + <div class="ui divider"></div> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels=0&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_select_no_label"}}</a> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_no_select"}}</a> {{$previousExclusiveScope := "_no_scope"}} {{range .Labels}} {{$exclusiveScope := .ExclusiveScope}} - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} + {{if and (ne $previousExclusiveScope $exclusiveScope)}} <div class="ui divider"></div> {{end}} {{$previousExclusiveScope = $exclusiveScope}} |