forgejo/templates/repo/issue/view_content
Gergely Nagy e947fa7acc 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>
(cherry picked from commit a93a99eef3)
2024-04-23 08:01:58 +00:00
..
add_reaction.tmpl
attachments.tmpl Provide a way to translate data units 2024-04-02 17:29:32 +00:00
comments.tmpl [BUG] Render correct label link 2024-04-12 20:47:23 +00: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 [FEAT] Configure if protected branch rule should apply to admins 2024-04-01 19:31:43 +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 19:31:26 +00:00
show_role.tmpl
sidebar.tmpl Fix the WIP prefix toggling on the sidebar 2024-04-23 08:01:58 +00:00
update_branch_by_merge.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
watching.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00