[yocto] [patchwork][PATCH] patchwork/templates/patchwork/series.html: Add link column
Jose Lamego
jose.a.lamego at linux.intel.com
Thu Sep 7 09:56:50 PDT 2017
Clicking on a patch name in Series view displays the patch at
the botton section in same page, but there is no easy way to
get a direct link to the patch, for example: to share the link.
This change includes the column "Link" where a direct link to the
patch is displayed and labeled with the patch id, that can be copied
or clicked to displayed the patch detail on a new tab.
[YOCTO #11888]
Signed-off-by: Jose Lamego <jose.a.lamego at linux.intel.com>
---
patchwork/templates/patchwork/series.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/patchwork/templates/patchwork/series.html b/patchwork/templates/patchwork/series.html
index 6c374f7..6c4608b 100644
--- a/patchwork/templates/patchwork/series.html
+++ b/patchwork/templates/patchwork/series.html
@@ -110,6 +110,7 @@ function toggle_headers(link_id, headers_id)
</th>
{% endif %}
<th>Name</th>
+ <th>Link</th>
<th>Submitter</th>
<th>State</th>
</tr>
@@ -126,6 +127,9 @@ function toggle_headers(link_id, headers_id)
<td><a href="#" class="patch-link" data-toggle="tooltip" title="Click to view the patch at bottom section"
data-url="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
>{{ patch.name|default:"[no subject]"|truncatechars:100 }}</a></td>
+ <td><a href="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
+ data-toggle="tooltip" title="Click to view the patch in a new tab"
+ target="_blank">{{ patch.id }}</a></td>
<td>{{ patch.submitter|personify:project }}</td>
<td>{{ patch.state }}</td>
<tr>
--
2.7.4
More information about the yocto
mailing list