Patchwork [v2,3/5] templates: Add "Sent From" to the patch template

login
register
mail settings
Submitter Doug Anderson
Date Nov. 18, 2013, 6 a.m.
Message ID <1384754442-27219-4-git-send-email-dianders@chromium.org>
Download mbox | patch
Permalink /patch/291949/
State New
Headers show

Comments

Doug Anderson - Nov. 18, 2013, 6 a.m.
This allows you to see both the submitter name as patchwork
understands it and also the name/email address that the patch was sent
from.

While we're at it, remove an extra </tr> from the Submitter line.

Signed-off-by: Doug Anderson <dianders@chromium.org>
---
 templates/patchwork/patch.html | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Patch

diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html
index 813622b..cc5db85 100644
--- a/templates/patchwork/patch.html
+++ b/templates/patchwork/patch.html
@@ -30,8 +30,14 @@  function toggle_headers(link_id, headers_id)
 <table class="patchmeta">
  <tr>
   <th>Submitter</th>
-  <td>{{ patch.submitter|personify }}</td></tr>
+  <td>{{ patch.submitter|personify }}</td>
  </tr>
+{% if patch.need_sent_from %}
+ <tr>
+  <th>Sent From</th>
+  <td>{{ patch.sent_from }}</td>
+ </tr>
+{% endif %}
  <tr>
   <th>Date</th>
   <td>{{ patch.date }}</td>