]> git.ozlabs.org Git - patchwork/commit - templates/patchwork/patch.html
Make the submitter name link to a query for that submitter
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Mar 2015 06:56:22 +0000 (17:56 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 3 May 2015 05:43:42 +0000 (13:43 +0800)
commit3d74843a8982926ab4ce310ed937a4f41ee36810
treea5e9c3c284b6ea149ef8b7d324f4faf3ab020b8a
parentf0ad2c6a249c0ee3a4b356e10033ea0041ecbea4
Make the submitter name link to a query for that submitter

Currently the submitter name is rendered as a mailto: link. This is
possibly useful in some circumstances, but in my experience is not
usually what I want. Although it opens a mail to the submitter, it
doesn't include any of the patch context, so is not very helpful.

Instead the submitter link can be a link to a query for patches by that
submitter. In my experience that is more useful, ie. when looking at a
single patch for a submitter you can then quickly get the list of all
patches by them.

So do that conversion.

In order to do it we need to know the current project, so that becomes a
parameter to personify. I believe the url reversal is correct, though
it's not pretty, and pulling SubmitterFilter.param out feels a little
wrong, but is the best solution I could come up with.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/templatetags/person.py
templates/patchwork/patch-list.html
templates/patchwork/patch.html