+
{% endif %}
@@ -255,6 +307,8 @@ git push -u origin master
$(document).ready(function() {
$(".extra_gits").hide();
});
+
+
$(function() {
$( "#more_gits" ).click(
function() {
@@ -271,4 +325,15 @@ $(function() {
);
});
+
+{% if origin == 'view_commits' %}
+
+{% endif %}
+
{% endblock %}
diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py
index bd5b290..576e84c 100644
--- a/pagure/ui/repo.py
+++ b/pagure/ui/repo.py
@@ -306,6 +306,7 @@ def view_commits(repo, branchname=None, username=None):
total_page = int(ceil(n_commits / float(limit)))
diff_commits = []
+ diff_commits_full = []
if repo.is_fork:
parentname = os.path.join(
APP.config['GIT_FOLDER'], repo.parent.path)
@@ -343,6 +344,7 @@ def view_commits(repo, branchname=None, username=None):
if commit.oid.hex in compare_commits:
break
diff_commits.append(commit.oid.hex)
+ diff_commits_full.append(commit)
return flask.render_template(
'repo_info.html',
@@ -356,6 +358,8 @@ def view_commits(repo, branchname=None, username=None):
branchname=branchname,
last_commits=last_commits,
diff_commits=diff_commits,
+ diff_commits_full=diff_commits_full,
+ number_of_commits=n_commits,
page=page,
total_page=total_page,
repo_admin=is_repo_admin(repo),