From c36e8b91fb741958fc3e499c14ceb2bb718321d3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 04 2019 11:49:58 +0000 Subject: Adjust the indentation in the HTML of the repo_branches template Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_branches.html b/pagure/templates/repo_branches.html index 5c5dab2..ef77f0b 100644 --- a/pagure/templates/repo_branches.html +++ b/pagure/templates/repo_branches.html @@ -7,101 +7,101 @@ {% block repo %}
- {% block overviewtabs %}{{ super() }}{% endblock %} + {% block overviewtabs %}{{ super() }}{% endblock %}

- Branches {{g.branches|length}} + Branches {{g.branches|length}}

{% if head %}
-
- -
- -
+
+ +
+
+
{% endif %} {% for branch in g.branches if branch != head %} -
-
- -
-
- - {% if g.repo_committer and branch != head - and ( - config.get('ALLOW_DELETE_BRANCH', True) - or repo.is_fork) %} -
- {{ g.confirmationform.csrf_token }} - - - -
- {% endif %} -
-
+
+
+ +
+
+ + {% if g.repo_committer and branch != head + and ( + config.get('ALLOW_DELETE_BRANCH', True) + or repo.is_fork) %} +
+ {{ g.confirmationform.csrf_token }} + + + +
+ {% endif %}
+
+
{% endfor %}
@@ -130,20 +130,20 @@ $(function() { {% if repo.is_fork %} html2 = ' \ - Open Pull Request \ -
'; + Open Pull Request \ +
'; {% else %} html2 = ' \ - Open Pull Request \ -
'; + Open Pull Request \ +
'; {%endif%} var _b = branch.replace(/\./g, '\\.').replace('/', '__').replace('\+', '\\+'); $('#branch-' + _b + ' .branch_del').prepend(html2); @@ -154,11 +154,11 @@ $(function() { for (branch in res.branch_w_pr){ var html = ' \ - ' - + ' Pull Request #' + res.branch_w_pr[branch].split('/').slice(-1)[0] + ' \ - '; + ' + + ' Pull Request #' + res.branch_w_pr[branch].split('/').slice(-1)[0] + ' \ + '; $('#branch-' + branch.replace(/\./g, '\\.').replace('/', '__') + ' .branch_del').prepend(html); $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});