[PATCH 40/49] patch: Redesign slightly the comment headers

Damien Lespiau damien.lespiau at intel.com
Fri Oct 2 00:12:45 AEST 2015


From: Belén Barros Pena <belen.barros.pena at intel.com>

Signed-off-by: Belén Barros Pena <belen.barros.pena at intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Acked-by: Stephen Finucane <stephen.finucane at intel.com>
---
 htdocs/css/style.css                     |  1 +
 patchwork/templates/patchwork/patch.html | 10 ++++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index 18b9b54..96575df 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -246,6 +246,7 @@ table.patchmeta tr th, table.patchmeta tr td {
 
 .comment .meta {
 	background: #f0f0f0;
+	padding: 0.3em 0.5em;
 }
 
 .comment .content {
diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html
index 593281a..0322abf 100644
--- a/patchwork/templates/patchwork/patch.html
+++ b/patchwork/templates/patchwork/patch.html
@@ -169,7 +169,10 @@ function toggle_headers(link_id, headers_id)
 {% for item in patch.commit_message %}
 <h2>Commit Message</h2>
 <div class="comment">
-<div class="meta">{{ item.submitter|personify:project }} - {{item.date}}</div>
+<div class="meta">
+ <span>{{ item.submitter|personify:project }}</span>
+ <span class="pull-right">{{ item.date }}</span>
+</div>
 <pre class="content">
 {{ item|commentsyntax }}
 </pre>
@@ -202,7 +205,10 @@ function toggle_headers(link_id, headers_id)
 {% endif %}
 
 <div class="comment">
-<div class="meta">{{ item.submitter|personify:project }} - {{item.date}}</div>
+<div class="meta">
+ <span>{{ item.submitter|personify:project }}</span>
+ <span class="pull-right">{{ item.date }}</span>
+</div>
 <pre class="content">
 {{ item|commentsyntax }}
 </pre>
-- 
2.1.0



More information about the Patchwork mailing list