From 6967870220531671592466664f17448035dadb54 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 27 2016 10:10:27 +0000 Subject: [PATCH 1/6] 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'}); } } From 97bd79a61b310ba16544efebf1f47b7228aeb4c9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 27 2016 10:10:27 +0000 Subject: [PATCH 2/6] Small css adjustment for my weird setup --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 9fb922e..7c9c806 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -393,9 +393,12 @@ a.notblue { text-align: right; } -.branch_del #delete_branch_form -{ -display:inline; +.branch_del .label{ + padding: 0.25em 0.3em; +} + +.branch_del #delete_branch_form { + display:inline; } .branch_del .btn-secondary{ From 850df76220b61c0aac9d162a2942bb2993a41844 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 27 2016 10:32:34 +0000 Subject: [PATCH 3/6] Use an arrow for the default branch --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 345cbc0..ea7f16b 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -202,16 +202,19 @@ git push -u origin master {% for branch in branches %}
- {% if not branchname == branch %} + {% if repo_admin and branch == head %} + + {% else %} + {% endif %} + {% if not branchname == branch %} {{ branch }} {% else %} - - {{ branch }} + {{ branch }} {% endif %}
@@ -226,8 +229,6 @@ git push -u origin master - {% elif repo_admin and branch == head %} - {% endif %}
From 69b8655c4d78e1159b6680e2ca1e9c37d64f2749 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 27 2016 10:34:19 +0000 Subject: [PATCH 4/6] Add a title to the arrow --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index ea7f16b..1ea2c4d 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -203,7 +203,8 @@ git push -u origin master
{% if repo_admin and branch == head %} - + {% else %} {% endif %} From aac28151144046527631a5a869bf5e4d76202c2d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 27 2016 11:53:17 +0000 Subject: [PATCH 5/6] Put head at the top --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 1ea2c4d..4a25116 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -199,16 +199,35 @@ git push -u origin master
Branches