0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-15 09:27:46 +01:00
gitea/templates/repo/diff
silverwind 572f0963ed
Only show diff file tree when more than one file changed (#27775)
When 0 or 1 files changed in a diff, we don't need to show a file tree.
This behaviour matches GitHub. Single-file diff after this change, note
absence of button:

<img width="1234" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/3618438b-e655-42a3-989f-f299267b2b8b">

Co-authored-by: Giteabot <teabot@gitea.io>
2023-10-25 05:09:18 +02:00
..
blob_excerpt.tmpl
box.tmpl Only show diff file tree when more than one file changed (#27775) 2023-10-25 05:09:18 +02:00
comment_form_datahandler.tmpl
comment_form.tmpl
comments.tmpl
compare.tmpl Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
conversation.tmpl
csv_diff.tmpl
escape_title.tmpl
image_diff.tmpl Replace ajax with fetch, improve image diff (#27267) 2023-10-11 12:34:21 +00:00
new_comment.tmpl
new_review.tmpl
options_dropdown.tmpl
section_code.tmpl
section_split.tmpl
section_unified.tmpl
stats.tmpl
whitespace_dropdown.tmpl