Skip to content

Commit d80dc15

Browse files
committed
templates: add optional Series ID buttons to the patch list
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 <[email protected]>
1 parent 7494873 commit d80dc15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

patchwork/templates/patchwork/partials/patch-list.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@
192192
</td>
193193
<td>
194194
{% if patch.series %}
195+
{% if user.is_authenticated and user.profile.show_ids %}
196+
<button type="button" class="btn btn-xs btn-copy" data-clipboard-text="{{ patch.series.id }}" title="Copy to Clipboard">
197+
{{ patch.series.id }}
198+
</button>
199+
{% endif %}
195200
<a href="?series={{patch.series.id}}">
196201
{{ patch.series|truncatechars:100 }}
197202
</a>

0 commit comments

Comments
 (0)