1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 09:44:43 +00:00
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
..
2023-04-17 11:37:23 +08:00
2023-01-05 13:58:51 +02:00
2023-04-25 23:06:39 +08:00
2023-04-24 05:50:58 -04:00
2023-02-18 21:17:39 +02:00
2023-01-31 09:45:19 +08:00
2023-05-05 20:33:37 +00:00
2023-02-11 08:39:50 +08:00
2023-05-05 20:33:37 +00:00
2022-12-30 23:31:00 +08:00
2023-05-02 12:31:35 -04:00