Skip to content

Commit

Permalink
templates: add optional Series ID buttons to the patch list
Browse files Browse the repository at this point in the history
If the user has turned on display of patch IDs, add clickable series ID
buttons inline with the series name.

Signed-off-by: Ross Burton <ross.burton@arm.com>
  • Loading branch information
rossburton committed Jan 25, 2024
1 parent 7494873 commit d80dc15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions patchwork/templates/patchwork/partials/patch-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
</td>
<td>
{% if patch.series %}
{% if user.is_authenticated and user.profile.show_ids %}
<button type="button" class="btn btn-xs btn-copy" data-clipboard-text="{{ patch.series.id }}" title="Copy to Clipboard">
{{ patch.series.id }}
</button>
{% endif %}
<a href="?series={{patch.series.id}}">
{{ patch.series|truncatechars:100 }}
</a>
Expand Down

0 comments on commit d80dc15

Please sign in to comment.