diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html
index e3de767..5035e75 100644
--- a/pagure/templates/requests.html
+++ b/pagure/templates/requests.html
@@ -131,18 +131,27 @@ $(function() {
console.log("done");
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='') }}" + branch;
html = 'From {{ g.fas_user.username }}/{{repo.name}} '+branch+' ';
+ href="' + url + '">From '
+ + ' '
+ +'{{ g.fas_user.username }}/{{ repo.name }} '
+ +''
+ +' '
+ + branch + ' ';
$("#PR-dropdown .dropdown-menu").prepend(html);
}
}
}
});
});
-{% endif %}
-{% if authenticated and repo_admin %}
-
+{% if authenticated and repo_admin %}
$(function() {
$.ajax({
url: '{{ url_for("internal_ns.get_pull_request_ready_branch") }}' ,
@@ -183,4 +192,5 @@ $(function() {
});
{% endif %}
+{% endif %}
{% endblock %}