Skip to content

Commit 3379bfd

Browse files
brondsemCarlos Cruz
authored andcommitted
if MR is calculating commits, avoid saying "0 commits"
1 parent e3e637c commit 3379bfd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Allura/allura/templates/repo/merge_request.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ <h2 class="fail">Something went wrong. Please, merge manually</h2>
5959
{% if req.downstream_repo %}
6060
<p>
6161
<a href="{{req.creator_url}}" rel="nofollow">{{req.creator_name}}</a>
62-
wants to merge {{h.text.plural(commits|count, 'commit', 'commits')}}
62+
wants to merge
63+
{% if commits_task_started %}{# don't have a 'commits' list yet #}
64+
commits
65+
{% else %}
66+
{{h.text.plural(commits|count, 'commit', 'commits')}}
67+
{% endif %}
6368
from <a href="{{req.downstream_url}}" rel="nofollow">{{req.downstream_url}}</a>
6469
to {{ req.target_branch }},
6570
{{lib.abbr_date(req.mod_date)}}

0 commit comments

Comments
 (0)