diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html
index 25325ed..dacdbc8 100644
--- a/pagure/templates/repo_info.html
+++ b/pagure/templates/repo_info.html
@@ -371,6 +371,12 @@ $(function() {
success: function(res) {
if (res.code == 'OK'){
for (branch in res.message){
+ var url = "{{ url_for(
+ 'new_request_pull',
+ repo=repo.name,
+ username=repo.user.user if repo.is_fork else None,
+ branch_to=head,
+ branch_from='') }}";
html = '
\
The branch ' + branch +' contains ' + res.message[branch].length
+ ' commits not in the main branch \
@@ -378,22 +384,20 @@ $(function() {
\
{{ head }} \
';
/*$($('.bodycontent').find('.row').children()[0]).before(html);*/
{% if repo.is_fork %}
html2 = '';
{% else %}
html2 = '';
diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html
index 1dcb36c..e3de767 100644
--- a/pagure/templates/requests.html
+++ b/pagure/templates/requests.html
@@ -160,7 +160,21 @@ $(function() {
console.log("done");
if (res.code == 'OK'){
for (branch in res.message){
- html = 'From {{repo.name}} '+branch+' ';
+ var url = "{{ url_for(
+ 'new_request_pull',
+ repo=repo.name,
+ username=repo.user.user if repo.is_fork else None,
+ branch_to=head,
+ branch_from='') }}";
+ html = ''
+ + 'From '
+ + ' '
+ + '{{ repo.name }}'
+ + ''
+ + ''
+ + ' '
+ + branch
+ + ' ';
$("#PR-dropdown .dropdown-menu").prepend(html);
}
}