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.
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>
2 years ago
..
blob_excerpt.tmpl Simplify template helper functions (#24570) 2 years ago
box.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
comment_form.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 3 years ago
comments.tmpl Fix issue attachment handling (#24202) 2 years ago
compare.tmpl Display when a repo was archived (#22664) 2 years ago
conversation.tmpl Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu (#24393) 2 years ago
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 3 years ago
escape_title.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 3 years ago
image_diff.tmpl Improve "new-menu" (#24465) 2 years ago
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
new_review.tmpl Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
options_dropdown.tmpl Expand/Collapse all changed files (#23639) 2 years ago
section_code.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 3 years ago
section_split.tmpl Simplify template helper functions (#24570) 2 years ago
section_unified.tmpl Simplify template helper functions (#24570) 2 years ago
stats.tmpl Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
whitespace_dropdown.tmpl Fix incorrect `toggle` buttons (#23676) 2 years ago