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
Alexander McRae aba96f65cd
Use `git diff-tree` for `DiffFileTree` on diff pages (#33514)
Modify Diff View FileTree to show all files

## Changes

* removes Show Status button on diff
* uses `git diff-tree` to generate the file tree for the diff
* doesn't reload the diff tree each time we load more files in the
preview
* selecting and unloaded file will keep loading until that file is
loaded
* removes `DiffFileList.vue` and "Show Stats" in diff options

## Open Questions

* selecting and unloaded file will keep loading until that file is
loaded. Is this behaviour okay? It matches what github does.

### Demo

In this demo I set `git.MAX_GIT_DIFF_FILES=1` in my `app.ini` to
demonstrate a worst case example. In most cases the behaviour isn't
nearly as jarring as we load a bunch of files at a time.


https://github.com/user-attachments/assets/72f29663-d6fc-472d-94fa-7fb5950c2836

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
..
actions workflow_dispatch use workflow from trigger branch (#33098) 2 months ago
branch Trivial fixes (#33304) 2 months ago
cite Fix Citation modal responsiveness and clipboard copy (#29799) 1 year ago
code Improve sync fork behavior (#33319) 2 months ago
diff Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2 weeks ago
editor Support choose email when creating a commit via web UI (#33432) 1 month ago
find Fix word overflow in file search page (#32695) 3 months ago
graph De-emphasize signed commits (#31160) 3 months ago
issue Show info about maintainers are allowed to edit a PR (#33738) 2 weeks ago
migrate Fix 500 error when error occurred in migration page (#33256) 2 months ago
projects Fix incorrect project page CSS class (#32510) 4 months ago
pulls Fix form width (#33151) 2 months ago
release Simplify context ref name (#33267) 2 months ago
settings Add cropping support when modifying the user/org/repo avatar (#33498) 1 month ago
tag Refactor DateUtils and merge TimeSince (#32409) 4 months ago
wiki Refactor context repository (#33202) 2 months ago
activity.tmpl Implement recent commits graph (#29210) 1 year ago
blame.tmpl Simplify context ref name (#33267) 2 months ago
branch_dropdown.tmpl Fix branch dropdown not display ref name (#33159) 2 months ago
clone_buttons.tmpl Rearrange Clone Panel (#31142) 3 months ago
clone_panel.tmpl Clone repository with Tea CLI (#33725) 2 weeks ago
code_frequency.tmpl Refactor web routes (#30519) 11 months ago
commit_load_branches_and_tags.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 12 months ago
commit_page.tmpl Simplify context ref name (#33267) 2 months ago
commit_sign_badge.tmpl Do not show unnecessary commit sign lock icon (#33387) 2 months ago
commit_status.tmpl
commit_statuses.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 3 months ago
commits.tmpl Simplify context ref name (#33267) 2 months ago
commits_list.tmpl De-emphasize signed commits (#31160) 3 months ago
commits_list_small.tmpl De-emphasize signed commits (#31160) 3 months ago
commits_search_dropdown.tmpl Unify search boxes (#29530) 1 year ago
commits_table.tmpl Refactor context repository (#33202) 2 months ago
contributors.tmpl Add "n commits" link to contributors in contributors graph page (#32799) 3 months ago
create.tmpl Fix form width (#33151) 2 months ago
create_helper.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 1 year ago
empty.tmpl Fix repo empty guide (#33114) 2 months ago
file_info.tmpl Improve detecting empty files (#31332) 9 months ago
forks.tmpl Refactor find forks and fix possible bugs that weak permissions check (#32528) 4 months ago
graph.tmpl Migrate `gt-hidden` to `tw-hidden` (#30046) 12 months ago
header.tmpl Refactor repository transfer (#33211) 1 month ago
home.tmpl Simplify context ref name (#33267) 2 months ago
home_sidebar_bottom.tmpl Tweak repo sidebar (#32847) 3 months ago
home_sidebar_top.tmpl Repo homepage styling tweaks (#33289) 2 months ago
icon.tmpl Replace 10 more gt- classes with tw- (#29945) 12 months ago
latest_commit.tmpl fix toggle commit body button ui when latest commit message is long (#32997) 3 months ago
navbar.tmpl Implement recent commits graph (#29210) 1 year ago
packages.tmpl
pulse.tmpl Remove unused CSS styles and move some styles to proper files (#33217) 2 months ago
recent_commits.tmpl Refactor web routes (#30519) 11 months ago
release_tag_header.tmpl Fix incorrect TagName/BranchName usages (#33279) 2 months ago
search.tmpl Unify search boxes (#29530) 1 year ago
search_name.tmpl
star_unstar.tmpl code optimization (#31315) 9 months ago
sub_menu.tmpl Repo homepage styling tweaks (#33289) 2 months ago
unicode_escape_prompt.tmpl Replace some `gt-` classes with `tw-` (#29570) 1 year ago
upload.tmpl
user_cards.tmpl Update the list of watchers and stargazers when clicking watch/unwatch or star/unstar (#32570) 4 months ago
view_file.tmpl Simplify context ref name (#33267) 2 months ago
view_list.tmpl add submodule diff links (#33097) 2 months ago
watch_unwatch.tmpl Tweak repo buttons on mobile and labeled button border-radius (#30503) 11 months ago
watchers.tmpl