gitea/templates/repo/issue/labels
wxiaoguang 4e33481357
Make label templates have consistent behavior and priority (#23749)
Fix https://github.com/go-gitea/gitea/issues/23715

Other related PRs:

* #23717
* #23716
* #23719

This PR is different from others, it tries to resolve the problem fundamentally (and brings more benefits)

Although it looks like some more lines are added, actually many new lines are for tests.

----

Before, the code was just "guessing" the file type and try to parse them.

<details>

![image](https://user-images.githubusercontent.com/2114189/228002245-57d58e27-1078-4da9-bf42-5bc0b264c6ce.png)

</details>

This PR:

* Always remember the original option file names, and always use correct parser for them.

* Another benefit is that we can sort the Label Templates now (before there was a map, its key order is undefined)

![image](https://user-images.githubusercontent.com/2114189/228002432-931b9f18-3908-484b-a36b-04760c9ad132.png)
2023-04-10 16:44:02 +08:00
..
edit_delete_label.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
label_list.tmpl Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
label_load_template.tmpl Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
label_new.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
label.tmpl Add context when rendering labels or emojis (#23281) 2023-03-05 22:59:05 +01:00
labels_selector_field.tmpl Deduplicate template code for label selection menu (#23431) 2023-03-12 22:39:56 +02:00
labels_sidebar.tmpl Refactor ctx in templates (#23105) 2023-03-02 11:44:06 -06:00