diff --git a/pagure/templates/commits.html b/pagure/templates/commits.html
new file mode 100644
index 0000000..0827f00
--- /dev/null
+++ b/pagure/templates/commits.html
@@ -0,0 +1,161 @@
+{% extends "repo_master.html" %}
+
+{% block title %}{{ select.capitalize() }} - {{ repo.name }}{% endblock %}
+{% set tag = "home" %}
+
+{% block repo %}
+
+ {% if repo_obj and repo_obj.is_empty %}
+
+
+
This repo is brand new!
+
There are no commits to this project yet
+
+
+ {% else %}
+
+ Commits {{number_of_commits}}
+
+
+
+ Displaying {{number_of_commits}} commits in
+
+ {% if repo.is_fork %}
+
+ {% else %}
+
+ {% endif %}
+ {{ repo.fullname }}
+
+
+
+ {{branchname}}
+
+
+
+ {% if diff_commits|count > 0 %}
+
+ This branch contains
+ {{ diff_commits|count }} commits not in
+ {% if repo.is_fork %}
+ the upstream project
+
+
+ {{ repo.name }}
+
+ {% else %}
+ the main branch
+ {% endif %}
+
+
+ {{head}}
+
+
+ {% if diff_commits and authenticated and
+ (repo.is_fork or repo.settings.get('pull_requests', True)) %}
+
+ {% endif %}
+
+
+
+ {% endif %}
+
+
+
+ {% if total_page %}
+
+ {% endif %}
+ {% endif %}
+
+{% endblock %}
+
+{% block jscripts %}
+{{ super() }}
+
+{% endblock %}
diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html
index b545deb..2c3a72b 100644
--- a/pagure/templates/repo_info.html
+++ b/pagure/templates/repo_info.html
@@ -26,129 +26,7 @@ git push -u origin master
{% endif %}
- {% else %}
- {% if origin == 'view_commits' %}
- Commits {{number_of_commits}}
-
- Displaying {{number_of_commits}} commits in
- {%
- if repo.is_fork %} {%
- else %} {%
- endif %}{{ repo.fullname }}
-
-
- {{branchname}}
-
-
-
- {% if diff_commits|count > 0 %}
-
- This branch contains
{{
- diff_commits|count }} commits not in {%
- if repo.is_fork %}the upstream project
-
-
- {{ repo.name }}
- {%
- else %}the main branch{%
- endif %}
-
-
- {{head}}
-
-
- {% if diff_commits and authenticated and (repo.is_fork or repo.settings.get('pull_requests', True)) %}
-
- {% endif %}
-
-
-
- {% endif %}
-
-
{% endif %}
-
- {% if total_page %}
-
- {% endif %}
- {% endif %}
-
- {% if origin == 'view_repo' or origin == 'view_repo_branch' %}
-
{% if readme %}
@@ -368,7 +246,6 @@ git push -u origin master
{% endif %}
- {% endif %}
@@ -443,15 +320,4 @@ $(function() {
{% endif %}
});
-
-{% if origin == 'view_commits' %}
-
-{% endif %}
-
{% endblock %}
diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index a94237b..ba9ba5c 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -107,7 +107,7 @@
diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py
index 7525a0a..c3398b4 100644
--- a/pagure/ui/repo.py
+++ b/pagure/ui/repo.py
@@ -344,8 +344,8 @@ def view_commits(repo, branchname=None, username=None):
diff_commits_full.append(commit)
return flask.render_template(
- 'repo_info.html',
- select='logs',
+ 'commits.html',
+ select='commits',
origin='view_commits',
repo_obj=repo_obj,
repo=repo,
diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py
index b974ac9..0a7cd52 100644
--- a/tests/test_pagure_flask_ui_repo.py
+++ b/tests/test_pagure_flask_ui_repo.py
@@ -848,7 +848,7 @@ class PagureFlaskRepotests(tests.Modeltests):
self.assertIn(
'\n'
'test project #1
', output.data)
- self.assertIn('Logs - test - Pagure', output.data)
+ self.assertIn('Commits - test - Pagure', output.data)
output = self.app.get('/test/commits/master')
self.assertEqual(output.status_code, 200)
@@ -1989,7 +1989,7 @@ index 0000000..fb7093d
follow_redirects=True)
self.assertEqual(output.status_code, 200)
self.assertIn(
- 'Logs - test - Pagure', output.data)
+ 'Commits - test - Pagure', output.data)
self.assertIn(
'\n Changes committed',
output.data)
diff --git a/tests/test_pagure_flask_ui_slash_branch_name.py b/tests/test_pagure_flask_ui_slash_branch_name.py
index 10e50cb..e837c2b 100644
--- a/tests/test_pagure_flask_ui_slash_branch_name.py
+++ b/tests/test_pagure_flask_ui_slash_branch_name.py
@@ -192,7 +192,7 @@ class PagureFlaskSlashInBranchtests(tests.Modeltests):
output = self.app.get('/test/commits/maxamilion/feature')
self.assertEqual(output.status_code, 200)
- self.assertIn('Logs - test - Pagure', output.data)
+ self.assertIn('Commits - test - Pagure', output.data)
self.assertIn('Add sources file for testing', output.data)
self.assertIn('Add .gitignore file for testing', output.data)
self.assertEqual(output.data.count('