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 another column with
the series IDs to the patch list template.
  • Loading branch information
rossburton committed Nov 21, 2023
1 parent f37bd86 commit 20069f6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patchwork/templates/patchwork/partials/patch-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
{% endif %}
</th>

{% if user.is_authenticated and user.profile.show_ids %}
<th>
Series ID
</th>
{% endif %}

<th>
<span class="colinactive">Series</span>
</th>
Expand Down Expand Up @@ -190,6 +196,15 @@
{{ patch.name|default:"[no subject]"|truncatechars:100 }}
</a>
</td>
{% if user.is_authenticated and user.profile.show_ids %}
<td>
{% if patch.series %}
<button type="button" class="btn btn-xs btn-copy" data-clipboard-text="{{ patch.series.id }}" title="Copy to Clipboard">
{{ patch.series.id }}
</button>
{% endif %}
</td>
{% endif %}
<td>
{% if patch.series %}
<a href="?series={{patch.series.id}}">
Expand Down

0 comments on commit 20069f6

Please sign in to comment.