diff --git a/pagure/templates/commits.html b/pagure/templates/commits.html index 77ce14d..84b74ea 100644 --- a/pagure/templates/commits.html +++ b/pagure/templates/commits.html @@ -241,7 +241,13 @@ username=repo.user.user if repo.is_fork else none, namespace=repo.namespace, commit_hash='COMMIT_HASH') }}' + var commitUrl = '{{ url_for("ui_ns.view_commit", + repo=repo.name, + username=username, + namespace=repo.namespace, + commitid="COMMIT_HASH") }}' url = url.replace("COMMIT_HASH", item.id.substring(2)) + commitUrl = commitUrl.replace("COMMIT_HASH", item.id.substring(2)) $.ajax({ url: url, type: 'GET', @@ -260,10 +266,10 @@ for (var i in sortedStatuses) { s = sortedStatuses[i] numStatuses = statuses[s].length - html += '' - html += statuses[s].length + '\n' + html += statuses[s].length + '\n' } html += '\n' $(html).insertBefore(item)