Commit 978434e3 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler Committed by Damien Lespiau
Browse files

templates/patch: Link back to the series



It's hard to find the series corresponding to the patch when you have
only the patch URL - you have to go through the author or through the
project and try to find an association with the series name.

Series view is also where the results from CI are shown, so this is the
drill for many people doing the reviews.

Since this is a common issue, let's link the series from the patch page.
Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 8dc52294
......@@ -42,6 +42,12 @@ function toggle_headers(link_id, headers_id)
<th>State</th>
<td>{{ patch.state.name }}{% if patch.archived %}, archived{% endif %}</td>
</tr>
{% if series %}
<tr>
<th>Series</th>
<td><a href="{% url 'series' series=series.id %}"/>"{{ series }}"</a></td>
</tr>
{% endif %}
{% if patch.commit_ref %}
<tr>
<th>Commit</th>
......
......@@ -81,6 +81,7 @@ def patch(request, patch_id):
context.add_message('Patch updated')
context['patch'] = patch
context['series'] = patch.series()
context['patchform'] = form
context['createbundleform'] = createbundleform
context['project'] = patch.project
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment