You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/issue/labels
silverwind dd8dde2be8
replace jquery-minicolors with coloris (#30055)
Get rid of one more jQuery dependant and have a nicer color picker as
well.

Now there is only a single global color picker init because that is all
that's necessary because the elements are present on the page when the
init code runs. The init is slightly weird because the module only takes
a selector instead of DOM elements directly.

The label modals now also perform form validation because previously it
was possible to trigger a 500 error `Color cannot be empty.` by clearing
out the color value on labels.

<img width="867" alt="Screenshot 2024-03-25 at 00 21 05"
src="https://github.com/go-gitea/gitea/assets/115237/71215c39-abb1-4881-b5c1-9954b4a89adb">
<img width="860" alt="Screenshot 2024-03-25 at 00 20 48"
src="https://github.com/go-gitea/gitea/assets/115237/a12cb68f-c38b-4433-ba05-53bbb4b1023e">
11 months ago
..
edit_delete_label.tmpl replace jquery-minicolors with coloris (#30055) 11 months ago
label.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago
label_archived.tmpl Display archived labels specially when listing labels (#26820) 1 year ago
label_list.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
label_load_template.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
label_new.tmpl replace jquery-minicolors with coloris (#30055) 11 months ago
labels_selector_field.tmpl Migrate margin and padding helpers to tailwind (#30043) 11 months ago
labels_sidebar.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 11 months ago