diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html
index 4206077..58b62c2 100644
--- a/pagure/templates/pull_request.html
+++ b/pagure/templates/pull_request.html
@@ -233,16 +233,16 @@
- Files Changed
-
+ Files Changed
+
{{ diff|length if diff else 0}}
- Commits
-
+ Commits
+
{{ diff_commits|length }}
diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py
index 7725cf2..c73df6c 100644
--- a/tests/test_pagure_flask_ui_repo.py
+++ b/tests/test_pagure_flask_ui_repo.py
@@ -1595,9 +1595,9 @@ class PagureFlaskRepotests(tests.Modeltests):
% (c2.oid.hex, c1.oid.hex),
output.data)
self.assertIn(
- 'Commits \n ' +
+ 'Commits \n ' +
'' +
+ 'class="label label-default label-pill">' +
'\n 2\n ',
output.data)
self.assertIn(
@@ -1611,9 +1611,9 @@ class PagureFlaskRepotests(tests.Modeltests):
(c1.oid.hex, c2.oid.hex),
output.data)
self.assertIn(
- 'Commits \n ' +
+ 'Commits \n ' +
'' +
+ 'class="label label-default label-pill">' +
'\n 2\n ',
output.data)
self.assertIn(
@@ -1643,9 +1643,9 @@ class PagureFlaskRepotests(tests.Modeltests):
'+ Row 0'), 2)
self.assertIn(
- 'Commits \n ' +
+ 'Commits \n ' +
'' +
+ 'class="label label-default label-pill">' +
'\n 3\n ',
output.data)
self.assertIn(
@@ -1671,9 +1671,9 @@ class PagureFlaskRepotests(tests.Modeltests):
'- ' +
'Row 0', output.data)
self.assertIn(
- 'Commits \n ' +
+ 'Commits \n ' +
'' +
+ 'class="label label-default label-pill">' +
'\n 3\n ',
output.data)
self.assertIn(