mirror of
1
Fork 0
forgejo/templates/repo
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
..
actions Fix various overflows on actions view (#30344) (#30505) 2024-04-21 18:07:00 +02:00
branch
cite
code
diff Fix unlabelled button in code review 2024-04-22 14:54:19 +00:00
editor Convert max file name length to 255 (#30489) (#30504) 2024-04-21 18:06:23 +02:00
find
graph
issue Fix the WIP prefix toggling on the sidebar 2024-04-23 08:01:58 +00:00
migrate
projects
pulls
release Make display of EasyMDE in UI optional to template 2024-04-19 13:49:20 +00:00
settings Merge pull request '[v1.22/gitea] week 2024-17 cherry pick v7.0' (#3354) from earl-warren/forgejo:wip-v7.0-gitea-cherry-pick into v7.0/forgejo 2024-04-22 09:55:54 +00:00
tag Adjust the signed tag verification line 2024-04-02 22:03:30 +00:00
wiki Make display of EasyMDE in UI optional to template 2024-04-19 13:49:20 +00:00
activity.tmpl
admin_flags.tmpl
blame.tmpl Fix border-radius on view, blame and code search (#30545) (#30560) 2024-04-21 18:11:36 +02:00
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 16:33:51 +02:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl [BUG] Disable 'View at this point in history' for wikis 2024-04-03 17:10:28 +00:00
commits_list_small.tmpl Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
commits_search_dropdown.tmpl
commits_table.tmpl
contributors.tmpl
create.tmpl
create_helper.tmpl
empty.tmpl
file_info.tmpl Provide a way to translate data units 2024-04-02 17:29:32 +00:00
flags.tmpl
forks.tmpl
graph.tmpl
header.tmpl Fix the settings tab highlighting 2024-04-12 20:46:24 +00:00
header_fork.tmpl
home.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 16:33:51 +02:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl
packages.tmpl
pulse.tmpl
recent_commits.tmpl
release_tag_header.tmpl
search.tmpl
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl Rename ByteSize to ReadableSize 2024-04-02 17:29:32 +00:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Fix border-radius on view, blame and code search (#30545) (#30560) 2024-04-21 18:11:36 +02:00
view_list.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 16:33:51 +02:00
watch_unwatch.tmpl
watchers.tmpl