From 7a462891c6c8324882daf14aa9b82ecb00cb5c74 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Thu, 9 Jul 2020 11:21:37 +0200 Subject: [PATCH] pull-requests: don't show new commits info box on closed PRs --- rhodecode/templates/pullrequests/pullrequest_show.mako | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako index 86988968..4e92c9ea 100644 --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -471,13 +471,11 @@ - % elif c.pr_merge_source_commit.changed: + % elif c.pr_merge_source_commit.changed and not c.pull_request.is_closed():
- % if c.pr_merge_source_commit.changed: ${_('There are new changes for `{}:{}` in source repository, please consider updating this pull request.').format(c.pr_merge_source_commit.ref_spec.type, c.pr_merge_source_commit.ref_spec.name)} - % endif