gitea/templates
wxiaoguang 8820191476
Improve template helper functions: string/slice (#24266)
Follow #23328

The improvements:

1. The `contains` functions are covered by tests
2. The inconsistent behavior of `containGeneric` is replaced by
`StringUtils.Contains` and `SliceUtils.Contains`
3. In the future we can move more help functions into XxxUtils to
simplify the `helper.go` and reduce unnecessary global functions.

FAQ:

1. Why it's called `StringUtils.Contains` but not `strings.Contains`
like Golang?

Because our `StringUtils` is not Golang's `strings` package. There will
be our own string functions.

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-04-22 14:16:22 -04:00
..
admin Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Fix footer display (#24251) 2023-04-22 01:58:59 -04:00
code Use data-tooltip-content for tippy tooltip (#23649) 2023-03-24 18:35:38 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
explore Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
mail Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
org Limit avatar upload to valid image files (#24258) 2023-04-21 17:58:59 -04:00
package Remove untranslatable `on_date` key (#24106) 2023-04-15 13:01:54 +02:00
projects Add unset default project column (#23531) 2023-04-19 10:28:28 -04:00
repo Improve template helper functions: string/slice (#24266) 2023-04-22 14:16:22 -04:00
shared Add monospace toggle button to textarea (#24034) 2023-04-13 15:05:06 -04:00
status Show friendly 500 error page to users and developers (#24110) 2023-04-14 13:19:11 +08:00
swagger Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
user Limit avatar upload to valid image files (#24258) 2023-04-21 17:58:59 -04:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
post-install.tmpl Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00