From c59551797f24ce7f1066e40d11946b81f4e74fab Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 27 2015 12:55:37 +0000 Subject: [PATCH 1/7] Rework the pull-request view to move the list of commits into a tab --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 5bec287..38ad185 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -138,7 +138,13 @@ {% endif %} -
+
+ + +
    {% for commit in diff_commits %}
  • @@ -160,9 +166,9 @@

    No commits found

    {% endfor %}
-
+ -
+
{% if authenticated and pull_request %}
+

{{ patch.new_file_path }}

    @@ -219,11 +225,12 @@ {% endautoescape %} {% endfor %} {% endif %} +
{% if authenticated and pull_request %} {{ mergeform.csrf_token }}
{% endif %} -
+ {% if pull_request and pull_request.comments%}
@@ -252,7 +259,7 @@ (supports the Markdown syntax) -
+
  • Comment
  • Preview
  • @@ -356,9 +363,9 @@ } ); - $( "#tabs" ).tabs(); + $( ".tabs" ).tabs(); - $( "#tabs" ).on('tabsactivate', + $( "#comment" ).on('tabsactivate', function(event, ui) { if (ui.newPanel.selector == '#preview') { var _text = $( "#comment" ).val(); From d446f00156b1034b08b49008aac7ab4de5d44ec3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 27 2015 12:55:37 +0000 Subject: [PATCH 2/7] Precise the number of commits considered in the tab --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 38ad185..79c622a 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -141,7 +141,7 @@
    From 3f0c6271b8b9b429acc9efa58ca9367e06ed2316 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 27 2015 12:55:37 +0000 Subject: [PATCH 3/7] Close the div earlier --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 79c622a..87b5737 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -231,6 +231,7 @@ {% endif %}
    +
    {% if pull_request and pull_request.comments%}
    From b793f07fbf15301013b0c0bd4fcfc87162fca44b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 27 2015 12:55:37 +0000 Subject: [PATCH 4/7] More HTML fixes to make the PR page look good --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 87b5737..a8224b2 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -177,7 +177,7 @@ {% if diff %} {% for patch in diff %} -
    +

    {{ patch.new_file_path }}

      @@ -224,15 +224,18 @@ index=loop.index)}} {% endautoescape %} {% endfor %} +
    {% endif %} -
    + {% if authenticated and pull_request %} {{ mergeform.csrf_token }} {% endif %} +
+ {% if pull_request and pull_request.comments%}
Date: May 27 2015 13:11:19 +0000 Subject: [PATCH 7/7] More CSS fixes to reduce the impact of the jquery css within the tabs --- diff --git a/pagure/static/koji.css b/pagure/static/koji.css index 97833dc..ed22541 100644 --- a/pagure/static/koji.css +++ b/pagure/static/koji.css @@ -13,12 +13,12 @@ body { padding: 0px; font-size: small; font-family: Cantarell, sans-serif; - color: #666; + color: #666!important; background: #fff url(header-bg.png) repeat-x; } a, a:visited, a:hover { - color: #0066CC; + color: #0066CC!important; text-decoration: none; } diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 9113495..ac554e2 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -544,6 +544,7 @@ request_comment p { background: -ms-linear-gradient(top, #ededed 0%,#fff 100%); /* IE10+ */ background: linear-gradient(to bottom, #ededed 0%,#fff 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#fff',GradientType=0 ); /* IE6-9 */ + font-family: Cantarell,sans-serif; } .issue_action,