From f2a31319d27bf00b9d7aefa66d42db00b3d80e89 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 26 2016 15:38:20 +0000 Subject: [PATCH 1/3] Bring back the links to delete a branch from the overview page --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 73d9e5d..4b4c0eb 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -342,7 +342,7 @@ btn-group-vertical > .btn-group::after, .btn-group-vertical > .btn-group::before { font-family: "Open Sans"; background: transparent; -padding:0; + padding: 0; } .card pre @@ -357,12 +357,12 @@ a.notblue { #headerSearch .selectize-control.single .selectize-input::after { -content: "\e08f"; -font-family: "Icons"; -border:none; -top:30%; -right:22px; -color:#aaa; + content: "\e08f"; + font-family: "Icons"; + border:none; + top:30%; + right:22px; + color:#aaa; } .footer a, .footer a:hover { color: #d9d9d9; } @@ -379,6 +379,22 @@ color:#aaa; padding:3px 5px 3px 5px; } +.branch_name { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.branch_del { + padding: 0px 0px; + margin: 0px 0px; +} + +.branch_del .btn-secondary{ + border: 0px; + color: #0275d8; +} + .repoinfo-activebranch { background:#eee; diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index f853927..cef9031 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -200,31 +200,34 @@ git push -u origin master
Branches
{% for branch in branches %} -
- {% if not branchname == branch %} - - {{ branch }} - - {% else %} - - {{ branch }} - {% endif %} - {# - {% if repo_admin and branchname and branchname != head %} -
- {{ form.csrf_token }} - -
- {% endif %} - #} +
+
+ {% if not branchname == branch %} + + {{ branch }} + + {% else %} + + {{ branch }} + {% endif %} +
+
+ {% if repo_admin and branch != head %} +
+ {{ form.csrf_token }} + +
+ {% endif %} +
{% endfor %}
@@ -383,19 +386,19 @@ $(function() { \ \ {{ head }} \ - '; /*$($('.bodycontent').find('.row').children()[0]).before(html);*/ {% if repo.is_fork %} - html2 = '
\ + html2 = '
\ New PR \
'; {% else %} - html2 = '