0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-09-12 12:19:38 +02:00
gitea/templates/repo/diff
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
..
blob_excerpt.tmpl Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
box.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
comment_form.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
comment_form_datahandler.tmpl
comments.tmpl Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
compare.tmpl Display when a repo was archived (#22664) 2023-04-26 10:46:26 -04:00
conversation.tmpl Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu (#24393) 2023-04-29 07:35:59 -04:00
csv_diff.tmpl
escape_title.tmpl
image_diff.tmpl Improve "new-menu" (#24465) 2023-05-01 12:08:37 -04:00
new_comment.tmpl
new_review.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
options_dropdown.tmpl Expand/Collapse all changed files (#23639) 2023-04-09 21:11:02 +08:00
section_code.tmpl
section_split.tmpl Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
section_unified.tmpl Simplify template helper functions (#24570) 2023-05-07 09:49:46 +00:00
stats.tmpl Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
whitespace_dropdown.tmpl