0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 13:24:38 +01:00
gitea/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>
2023-05-07 09:49:46 +00:00
..
actions Handle canceled workflow as a warning instead of a fail (#24282) 2023-04-23 14:41:55 -04:00
agit add user rename endpoint to admin api (#22789) 2023-03-14 03:45:21 -04:00
asymkey
attachment Preserve file size when creating attachments (#23406) 2023-03-12 03:48:07 -04:00
auth Update LDAP filters to include both username and email address (#24547) 2023-05-05 14:18:53 -04:00
automerge
context Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2023-04-04 10:08:23 +08:00
convert Display when a repo was archived (#22664) 2023-04-26 10:46:26 -04:00
cron
externalaccount
forms Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
gitdiff Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
issue Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
lfs Fix auth check bug (#24382) 2023-04-27 22:43:27 +02:00
mailer Add ntlm authentication support for mail (#23811) 2023-05-02 17:40:46 -04:00
markup
migrations Improve test logger (#24235) 2023-04-21 16:32:25 -04:00
mirror
org
packages Add RPM registry (#23380) 2023-05-05 20:33:37 +00:00
pull Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
release Delete deleted release attachments immediately from storage (#23913) 2023-04-06 18:01:36 -04:00
repository Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
task
user add user rename endpoint to admin api (#22789) 2023-03-14 03:45:21 -04:00
webhook Merge setting.InitXXX into one function with options (#24389) 2023-05-04 11:55:35 +08:00
wiki Improve wiki user title test (#24559) 2023-05-06 11:24:18 +00:00