gitea/templates
wxiaoguang 56ae853ca0
Simplify template helper functions (#24570)
To avoid bloating the template helper functions, some functions could be
provided by type methods.

And the new code `data-line-type="{{.GetHTMLDiffLineType}}"` reads
better than `data-line-type="{{DiffLineTypeToStr .GetType}}"`


After the fix, screenshots (the same as before):

<details>


![image](https://user-images.githubusercontent.com/2114189/236657918-20ce01e0-1192-443e-aeb4-6b3fe1aa2102.png)


![image](https://user-images.githubusercontent.com/2114189/236657950-ee19727f-a1fc-4133-afc7-e5d1a8c1783f.png)

</details>
2023-05-07 09:49:46 +00:00
..
admin Update LDAP filters to include both username and email address (#24547) 2023-05-05 14:18:53 -04:00
api/packages/pypi
base Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00
code
custom
devtest
explore Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 2023-05-06 18:10:30 +08:00
mail
org Revert "Prevent a user with a different email from accepting the team invite" (#24531) 2023-05-05 15:59:12 +08:00
package Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
projects Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2023-05-03 17:58:59 -04:00
repo Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
shared Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2023-05-06 21:11:27 +08:00
status Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00
swagger Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
user Add org visibility label to non-organization's dashboard (#24558) 2023-05-07 08:33:43 +08:00
home.tmpl
install.tmpl
post-install.tmpl