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

Message ID 1384754442-27219-4-git-send-email-dianders@chromium.org
State Deferred
Delegated to: Stephen Finucane
Headers show

Commit Message

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

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(-)


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">
-  <td>{{ patch.submitter|personify }}</td></tr>
+  <td>{{ patch.submitter|personify }}</td>
+{% if patch.need_sent_from %}
+ <tr>
+  <th>Sent From</th>
+  <td>{{ patch.sent_from }}</td>
+ </tr>
+{% endif %}
   <td>{{ patch.date }}</td>