[PATCH 27/46] patch-list: Re-design the main list of patches with Bootsrap

Damien Lespiau damien.lespiau at intel.com
Sun Nov 9 06:08:45 AEDT 2014


From: Belén Barros Peña <belen.barros.pena at intel.com>

A bit more spacing everywhere. Also opted for the highlight on hover
instead of the alternating row background color.

Signed-off-by: Belén Barros Peña <belen.barros.pena at intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 htdocs/css/style.css                | 43 -------------------------------------
 templates/patchwork/patch-list.html |  4 ++--
 2 files changed, 2 insertions(+), 45 deletions(-)

diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index e09821e..1ec7400 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -106,34 +106,6 @@ dl dt {
 	color: green;
 }
 
-/* patch lists */
-table.patchlist {
-	width: 98%;
-	border: thin solid black;
-	padding: 0em 1em;
-}
-
-table.patchlist th {
-	background: #eeeeee;
-	border-bottom: thin solid black;
-	text-align: left;
-	padding-left: 6px;
-}
-
-table.patchlist th img {
-	vertical-align: bottom;
-}
-
-table.patchlist td {
-	padding: 2px 6px 2px 6px;
-	margin: 0px;
-	margin-top: 10px;
-}
-
-table.patchlist td img {
-	vertical-align: bottom;
-}
-
 .filters {
     border: 1px solid #cccccc;
     border-radius: 4px;
@@ -149,21 +121,6 @@ a.filter-action:hover {
 }
 
 
-table.patchlist td.patchlistreorder {
-	background: #c0c0ff;
-	border-top: thin solid gray;
-	border-bottom: thin solid black;
-	font-size: smaller;
-	text-align: right;
-}
-table.patchlist tr.odd {
-	background: #ffffff;
-}
-
-table.patchlist tr.even {
-	background: #e8e8e8;
-}
-
 a.colinactive, a.colactive {
 	color: black;
 	text-decoration: none;
diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html
index 41ea2b3..bbf5965 100644
--- a/templates/patchwork/patch-list.html
+++ b/templates/patchwork/patch-list.html
@@ -35,7 +35,7 @@
 {% csrf_token %}
 <input type="hidden" name="form" value="patchlistform"/>
 <input type="hidden" name="project" value="{{project.id}}"/>
-<table class="patchlist" id="patchlist">
+<table class="table table-hover" id="patchlist">
  <thead>
   <tr>
    {% if user.is_authenticated %}
@@ -130,7 +130,7 @@
 {% if page.paginator.count %}
  <tbody>
  {% for patch in page.object_list %}
-  <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">
+  <tr id="patch_row:{{patch.id}}">
     {% if user.is_authenticated %}
     <td>
     <input type="checkbox" name="patch_id:{{patch.id}}"/>
-- 
1.8.3.1



More information about the Patchwork mailing list