1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
forgejo/templates
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
..
admin Fix admin notice view-detail (#30450) 2024-04-15 20:01:36 +02:00
api/packages/pypi Update templates/api/packages/pypi/simple.tmpl 2024-04-12 16:43:30 +00:00
base Add [other].SHOW_FOOTER_POWERED_BY setting to hide Powered by (#30253) 2024-04-07 15:40:31 +02:00
custom [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
devtest Revert 100% label max-width (#30481) 2024-04-21 11:37:55 +02:00
explore [BUG] Fix tooltip for 1000+ stars/forks 2024-04-10 23:53:40 +02:00
mail Provide a way to translate data units 2024-03-30 21:10:47 +05:00
org Fix the spacing issue in the Project view (#30415) 2024-04-15 20:01:36 +02:00
package Some NuGet package enhancements 2024-04-15 20:45:14 +02:00
projects [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
repo Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
shared Make display of EasyMDE in UI optional to template 2024-04-15 21:23:33 +05:00
status Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
swagger Update API to return 'source_id' for users (#29718) 2024-04-21 12:04:18 +02:00
user Use flex-container for dashboard layout (#30214) 2024-04-21 11:12:00 +02:00
webhook webhook: matrix access_token helper text 2024-04-16 08:59:56 +02:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
install.tmpl Update checker setting updates 2024-03-31 10:52:24 +05:00
post-install.tmpl [BRANDING] Custom loading animation for Forgejo 2024-02-05 16:02:13 +01:00