Skip to content

Commit 20069f6

Browse files
committed
templates: add optional Series ID buttons to the patch list
If the user has turned on display of patch IDs, add another column with the series IDs to the patch list template.
1 parent f37bd86 commit 20069f6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

+15
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
{% endif %}
8686
</th>
8787

88+
{% if user.is_authenticated and user.profile.show_ids %}
89+
<th>
90+
Series ID
91+
</th>
92+
{% endif %}
93+
8894
<th>
8995
<span class="colinactive">Series</span>
9096
</th>
@@ -190,6 +196,15 @@
190196
{{ patch.name|default:"[no subject]"|truncatechars:100 }}
191197
</a>
192198
</td>
199+
{% if user.is_authenticated and user.profile.show_ids %}
200+
<td>
201+
{% if patch.series %}
202+
<button type="button" class="btn btn-xs btn-copy" data-clipboard-text="{{ patch.series.id }}" title="Copy to Clipboard">
203+
{{ patch.series.id }}
204+
</button>
205+
{% endif %}
206+
</td>
207+
{% endif %}
193208
<td>
194209
{% if patch.series %}
195210
<a href="?series={{patch.series.id}}">

0 commit comments

Comments
 (0)