forgejo/templates/repo/issue
Gergely Nagy a93a99eef3
Fix the WIP prefix toggling on the sidebar
The WIP prefix toggling link on the sidebar only supported toggling
the *first* prefix specified in
`[repository.pullrequest].WORK_IN_PROGRESS_PREFIXES`. If the pull
request had a title with any other prefix, the first prefix listed in
the config was added (and then removed on toggling it off).

This little change makes all of the prefixes available for the
JavaScript function that does the toggling, and changes said function to
find the used prefix first, and toggle that.

When adding the prefix, it will still default to adding the first one
listed in the configuration, but it will happily remove any others if
those are present.

Fixes #3377.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-04-23 01:41:35 +02:00
..
fields
labels
milestone
view_content Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
branch_selector_field.tmpl
card.tmpl
choose.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
comment_tab.tmpl
filter_actions.tmpl
filter_list.tmpl
filters.tmpl
label_precolors.tmpl
labels.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
list.tmpl
milestone_issues.tmpl [UI] Refactor display of milestone issue list header 2024-04-20 14:11:38 +05:00
milestone_new.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
milestones.tmpl [UI] Fix milestone header inconsistencies with issues/PRs 2024-04-20 14:06:26 +05:00
navbar.tmpl
new.tmpl
new_form.tmpl
openclose.tmpl
search.tmpl
view.tmpl
view_content.tmpl
view_title.tmpl Various improvements to pages: notifications and subscriptions 2024-04-16 15:29:28 +05:00