emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [patch] patchwork patch.html template
@ 2010-05-21  7:50 David Maus
  2010-05-21 15:15 ` John Wiegley
  0 siblings, 1 reply; 2+ messages in thread
From: David Maus @ 2010-05-21  7:50 UTC (permalink / raw)
  To: org-mode


[-- Attachment #1.1.1: Type: text/plain, Size: 429 bytes --]

Not sure if I got it right but attached patch is for the template of
patchwork that displays the patches (patch.html).  It adds a link back
to gmane to the displayed message id header field using gmane's
message id resolver (mid.gmane.org).  Thus one can jump back to the
thread in the mailing list with very little effort.

HTH
 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.1.2: patchwork-template-patch.patch --]
[-- Type: text/plain, Size: 441 bytes --]

diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html
index 7c249ec..6ae7b2a 100644
--- a/templates/patchwork/patch.html
+++ b/templates/patchwork/patch.html
@@ -38,7 +38,7 @@ function toggle_headers(link_id, headers_id)
  </tr>
  <tr>
   <th>Message ID</th>
-  <td>{{ patch.msgid }}</td>
+  <td><a href="http://mid.gmane.org/{{ patch.msgid|urlencode }}">{{ patch.msgid }}</a></td>
  </tr>
  <tr>
   <th>Download</th>

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] patchwork patch.html template
  2010-05-21  7:50 [patch] patchwork patch.html template David Maus
@ 2010-05-21 15:15 ` John Wiegley
  0 siblings, 0 replies; 2+ messages in thread
From: John Wiegley @ 2010-05-21 15:15 UTC (permalink / raw)
  To: David Maus; +Cc: org-mode

On May 21, 2010, at 3:50 AM, David Maus wrote:

> Not sure if I got it right but attached patch is for the template of
> patchwork that displays the patches (patch.html).  It adds a link back
> to gmane to the displayed message id header field using gmane's
> message id resolver (mid.gmane.org).  Thus one can jump back to the
> thread in the mailing list with very little effort.

You got it right. :)

John

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-21 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21  7:50 [patch] patchwork patch.html template David Maus
2010-05-21 15:15 ` John Wiegley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).