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/services
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
..
actions Handle canceled workflow as a warning instead of a fail (#24282) 1 year ago
agit add user rename endpoint to admin api (#22789) 1 year ago
asymkey Add context cache as a request level cache (#22294) 1 year ago
attachment Preserve file size when creating attachments (#23406) 1 year ago
auth Update LDAP filters to include both username and email address (#24547) 1 year ago
automerge Add force_merge to merge request and fix checking mergable (#23010) 1 year ago
context Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 1 year ago
convert Display when a repo was archived (#22664) 1 year ago
cron Add Cargo package registry (#21888) 1 year ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Add RPM registry (#23380) 1 year ago
gitdiff Simplify template helper functions (#24570) 1 year ago
issue Use more specific test methods (#24265) 1 year ago
lfs Fix auth check bug (#24382) 1 year ago
mailer Add ntlm authentication support for mail (#23811) 1 year ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations Improve test logger (#24235) 1 year ago
mirror Fill head commit to in payload when notifying push commits for mirroring (#23215) 1 year ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages Add RPM registry (#23380) 1 year ago
pull Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
release Delete deleted release attachments immediately from storage (#23913) 1 year ago
repository Fix unclear `IsRepositoryExist` logic (#24374) 1 year ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user add user rename endpoint to admin api (#22789) 1 year ago
webhook Merge setting.InitXXX into one function with options (#24389) 1 year ago
wiki Improve wiki user title test (#24559) 1 year ago