You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
puni9869 50070550a8
Hide archived labels when filtering by labels on the issue list (#27115)
Followup  https://github.com/go-gitea/gitea/pull/26820
## Archived labels UI for issue filter and issue filter actions for
issues/pull request pages.

Changed:
* Enhanced the Issue filter and Issue filter actions UI page to
seamlessly incorporate a list of archived labels.
* Pagination functionality is same as before. If archived label checkbox
is checked then we are adding a query string`archived=true` in the url
to save the state of page.
* Issue filter actions menu is separated into different template.
* Adding the archived flag in issue url labels.
* Pull Request page is also work the same.

Outsourced:
* Defer the implementation of specialized handling for archived labels
to upcoming pull requests. This step will be undertaken subsequent to
the successful merge of this pull request.

Screenshots
### Issue page
<img width="1360" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/d7efb2ef-5b2b-449d-83f0-d430a32ec432">

### Issue page with label filter on archived label checkbox when not
checked --> No archived label is there in list
<img width="1249" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/ceea68ef-91f2-4693-910f-2e25e236bfc9">

### Issue page with label filter on archived label checkbox when checked
--> Show archived label in the list.
<img width="710" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2414d26b-2079-4c3c-bd9e-f2f5411bcabf">

### Issue page with label filter on issue action menu on archived label
checkbox when checked --> Show archived label in the list.
<img width="409" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/259cac87-3e21-4778-99a2-a6a0b8c81178">


### Applied the archived=true in Issue labels when archived checkbox is
checked.
<img width="984" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/657ce3db-c0ae-402e-b12d-3b580d3c2ed0">

---




Part of https://github.com/go-gitea/gitea/issues/25237

---------

Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
actions Artifacts retention and auto clean up (#26131) 1 year ago
setting Fix repo count in org action settings (#27245) 1 year ago
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
blame.go Improve tree not found page (#26570) 1 year ago
branch.go Search branches (#27055) 1 year ago
cherry_pick.go Sync branches into databases (#22743) 2 years ago
commit.go More `db.DefaultContext` refactor (#27265) 1 year ago
compare.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
download.go Less naked returns (#25713) 2 years ago
editor.go Improve tree not found page (#26570) 1 year ago
editor_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Improve tree not found page (#26570) 1 year ago
helper_test.go Make web context initialize correctly for different cases (#26726) 1 year ago
http.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
http_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Hide archived labels when filtering by labels on the issue list (#27115) 1 year ago
issue_content_history.go Improve issue history dialog and make poster can delete their own history (#27323) 1 year ago
issue_dependency.go Add context parameter to some database functions (#26055) 2 years ago
issue_label.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_label_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
issue_lock.go Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380) 2 years ago
issue_pin.go Add context parameter to some database functions (#26055) 2 years ago
issue_stopwatch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Add context parameter to some database functions (#26055) 2 years ago
issue_watch.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go More refactoring of `db.DefaultContext` (#27083) 1 year ago
migrate.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
milestone.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
packages.go Fix the display of org level badges (#26504) 1 year ago
patch.go Sync branches into databases (#22743) 2 years ago
projects.go More `db.DefaultContext` refactor (#27265) 1 year ago
projects_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
pull.go More `db.DefaultContext` refactor (#27265) 1 year ago
pull_review.go More `db.DefaultContext` refactor (#27265) 1 year ago
release.go Improvements of releases list and tags list (#25859) 1 year ago
release_test.go Improvements of releases list and tags list (#25859) 1 year ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Another round of `db.DefaultContext` refactor (#27103) 1 year ago
search.go Refactor indexer (#25174) 2 years ago
topic.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go More `db.DefaultContext` refactor (#27265) 1 year ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Move notification interface to services layer (#26915) 1 year ago
wiki_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago