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.
forgejo/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>
1 year ago
..
admin Update LDAP filters to include both username and email address (#24547) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Improve template system and panic recovery (#24461) 1 year ago
code Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve some modal action buttons (#24289) 1 year ago
explore Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 1 year ago
mail Remove incorrect HTML self close tag (#23748) 1 year ago
org Revert "Prevent a user with a different email from accepting the team invite" (#24531) 1 year ago
package Add RPM registry (#23380) 1 year ago
projects Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 1 year ago
repo Simplify template helper functions (#24570) 1 year ago
shared Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 1 year ago
status Improve template system and panic recovery (#24461) 1 year ago
swagger Add RPM registry (#23380) 1 year ago
user Add org visibility label to non-organization's dashboard (#24558) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago