forgejo/templates/repo
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
..
actions Fix various overflows on actions view (#30344) 2024-04-21 11:53:50 +02:00
branch Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
cite
code Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
diff Fix unlabelled button in code review 2024-04-18 16:20:29 +02:00
editor Convert max file name length to 255 (#30489) 2024-04-21 11:53:41 +02:00
find Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
graph Fix DEFAULT_SHOW_FULL_NAME=false has no effect in commit list and commit graph page (#30096) 2024-04-07 10:52:45 +02:00
issue Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
migrate Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
projects Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
pulls Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
release Make display of EasyMDE in UI optional to template 2024-04-15 21:23:33 +05:00
settings Merge pull request '[gitea] week 2024-17 cherry pick (gitea/main -> forgejo)' (#3350) from algernon/wcp/2024-17 into forgejo 2024-04-22 18:48:13 +00:00
tag Adjust the signed tag verification line 2024-04-02 23:02:34 +02:00
wiki Make display of EasyMDE in UI optional to template 2024-04-15 21:23:33 +05:00
activity.tmpl
admin_flags.tmpl
blame.tmpl Fix border-radius on view, blame and code search (#30545) 2024-04-21 16:28:16 +02:00
branch_dropdown.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
commit_page.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 20:01:35 +02:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
commits_list.tmpl [PORT] gitea#30396: Fix author name alignment in commits table 2024-04-15 20:09:34 +02:00
commits_list_small.tmpl Fix and tweak pull request commit list (#30528) 2024-04-21 12:10:57 +02:00
commits_search_dropdown.tmpl
commits_table.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
contributors.tmpl
create.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
create_helper.tmpl
empty.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
file_info.tmpl Provide a way to translate data units 2024-03-30 21:10:47 +05:00
flags.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
forks.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
graph.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
header.tmpl Fix the settings tab highlighting 2024-04-12 19:11:21 +02:00
header_fork.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
home.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 20:01:35 +02:00
icon.tmpl
latest_commit.tmpl Fix DEFAULT_SHOW_FULL_NAME=false has no effect in commit list and commit graph page (#30096) 2024-04-07 10:52:45 +02:00
navbar.tmpl
packages.tmpl
pulse.tmpl Pulse page improvements (#30149) 2024-04-21 11:08:33 +02:00
recent_commits.tmpl
release_tag_header.tmpl Fix menu buttons in issues and release (#30056) 2024-03-30 07:17:30 +01:00
search.tmpl
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl Further consistency in the repo header 2024-03-27 09:33:06 +01:00
sub_menu.tmpl Rename ByteSize to ReadableSize 2024-03-31 20:17:12 +05:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Fix border-radius on view, blame and code search (#30545) 2024-04-21 16:28:16 +02:00
view_list.tmpl Various improvements for long file and commit names (#30374) 2024-04-15 20:01:35 +02:00
watch_unwatch.tmpl Further consistency in the repo header 2024-03-27 09:33:06 +01:00
watchers.tmpl