forgejo/templates/repo/issue/view_content
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
..
add_reaction.tmpl
attachments.tmpl Provide a way to translate data units 2024-03-30 21:10:47 +05:00
comments.tmpl [BUG] Render correct label link 2024-04-12 17:23:20 +02:00
comments_authorlink.tmpl
comments_delete_time.tmpl
context_menu.tmpl
conversation.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
pull.tmpl Merge pull request '[FEAT] Configure if protected branch rule should apply to admins' (#2867) from gusted/forgejo-protectedbranch-admins into forgejo 2024-04-01 19:28:29 +00:00
pull_merge_instruction.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
reactions.tmpl
reference_issue_dialog.tmpl Fix dropdown text ellipsis (#30628) 2024-04-22 21:02:29 +02:00
show_role.tmpl
sidebar.tmpl Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
update_branch_by_merge.tmpl
watching.tmpl