1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00
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 Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
labels Prevent flash of dropdown menu on labels list (#30215) 2024-04-07 15:40:31 +02:00
milestone [BUG] Consistent styling for Sort filter 2024-03-31 16:24:03 +02:00
view_content Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
branch_selector_field.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
card.tmpl [GITEA] Apply changes to archived labels 2024-04-01 17:46:02 +05:00
choose.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
comment_tab.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
filter_actions.tmpl Merge pull request 'Port archived labels visual filter' (#2887) from 0ko/forgejo:lable-archive-bw into forgejo 2024-04-03 20:06:39 +00:00
filter_list.tmpl add label filters in org/{org_name}/issues 2024-04-04 17:57:11 +05:30
filters.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
label_precolors.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
labels.tmpl Fix spacing in issue navbar (#30238) 2024-04-07 15:40:31 +02:00
list.tmpl Fix New issue button consistency 2024-03-30 21:08:34 +05:00
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 Fix menu buttons in issues and release (#30056) 2024-03-30 07:17:30 +01:00
new.tmpl Fix incorrect redirection when creating a PR fails (#29537) 2024-03-06 12:10:45 +08:00
new_form.tmpl When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 2024-03-30 07:17:31 +01:00
openclose.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
search.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
view.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2023-05-03 17:58:59 -04:00
view_content.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
view_title.tmpl Various improvements to pages: notifications and subscriptions 2024-04-16 15:29:28 +05:00