]> source.dussan.org Git - gitea.git/commit
Hide diff stats on empty PRs (#30629) (#30645)
authorGiteabot <teabot@gitea.io>
Mon, 22 Apr 2024 14:43:44 +0000 (22:43 +0800)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 14:43:44 +0000 (14:43 +0000)
commit682a07676857f238baf282c97cb105bf59b1eb5c
treeaaa753b4d46ac741b7fe05c09ebcb196ed9631cc
parent706fc596a03c91893097c0237b67a3ae585edb6a
Hide diff stats on empty PRs (#30629) (#30645)

Backport #30629 by @silverwind

When a PR is empty, e.g. has neither additions nor deletions, we don't
need to show this:

<img width="125" alt="Screenshot 2024-04-21 at 23 25 38"
src="https://github.com/go-gitea/gitea/assets/115237/0b987eb5-66f5-4b9b-b5aa-7e9e267e9b52">

Co-authored-by: silverwind <me@silverwind.io>
templates/repo/pulls/tab_menu.tmpl