From 3bf421e9473606d88f50b63c376029a3a6f94b2b Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 25 2016 14:42:16 +0000 Subject: move the create PR functionality for the overview to the branches list --- diff --git a/pagure/static/koji.css b/pagure/static/koji.css index 046d6e9..7598e3e 100644 --- a/pagure/static/koji.css +++ b/pagure/static/koji.css @@ -401,3 +401,14 @@ color:#aaa; background-repeat: no-repeat; min-height: 150px; } + +.repoinfo-branchlistitem +{ + padding:3px 5px 3px 5px; +} + +.repoinfo-activebranch +{ + background:#eee; + border:1px solid #ccc; +} diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index edd30bf..ab491ca 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -180,7 +180,7 @@ git push -u origin master {% endif %}
Branches
@@ -369,10 +383,28 @@ $(function() { \ {{ head }} \
'; - $($('.bodycontent').find('.row').children()[0]).before(html) + /*$($('.bodycontent').find('.row').children()[0]).before(html);*/ + {% if repo.is_fork %} + html2 = '
\ + New PR \ +
'; + {% else %} + html2 = '
\ + New PR \ +
'; + {%endif%} + $('#branch-'+branch).append(html2); + $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'}); } } }