From 6967870220531671592466664f17448035dadb54 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 27 2016 10:10:27 +0000 Subject: slight rework of the branches display on the overview --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 32e2470..9fb922e 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -390,6 +390,12 @@ a.notblue { .branch_del { padding: 0px 0px; margin: 0px 0px; + text-align: right; +} + +.branch_del #delete_branch_form +{ +display:inline; } .branch_del .btn-secondary{ diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 5b7280b..345cbc0 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -203,29 +203,31 @@ git push -u origin master
{% if not branchname == branch %} + - {{ branch }} + {{ branch }} {% else %} - - {{ branch }} + + {{ branch }} {% endif %}
-
+
{% if repo_admin and branch != head %} -
{{ form.csrf_token }} - +
+ {% elif repo_admin and branch == head %} + {% endif %}
@@ -391,21 +393,21 @@ $(function() {
'; /*$($('.bodycontent').find('.row').children()[0]).before(html);*/ {% if repo.is_fork %} - html2 = '
\ + html2 = ' \ New PR \ -
'; + '; {% else %} - html2 = '
\ + html2 = ' \ New PR \ -
'; + '; {%endif%} - $('#branch-'+branch).append(html2); + $('#branch-'+branch+' .branch_del').prepend(html2); $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'}); } }