Commit c996dc2c authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

series: Display historical cover letters

Cover letters are now using details/summary HTML block to be expandable
with the latest one being expanded by default.
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <>
parent 1c5522df
Pipeline #39098 failed with stage
in 1 minute and 21 seconds
......@@ -99,17 +99,22 @@ $(document).ready(function() {
{% if cover_letter %}
<h2>Cover Letter</h2>
<div class="comment">
<pre class="content">
{{ cover_letter }}
{% if cover_letters %}
<h2>Cover Letter(s)</h2>
{% endif %}
{% for version, cover_letter in cover_letters %}
<details {% if forloop.last %}open{% endif %}>
<summary style="display: list-item;">Revision {{ version }}</summary>
<div class="comment">
<pre class="content">
{{ cover_letter }}
{% endfor %}
......@@ -49,11 +49,13 @@ class SeriesView(View):
.filter(revision=revision, patch=None) \
cover_letters = [(r.version, r.cover_letter) for r in revisions if r.cover_letter]
return render(request, 'patchwork/series.html', {
'series': series,
'project': project,
'is_editable': Can(request.user).edit(project),
'is_retestable': Can(request.user).retest(series),
'cover_letter': revision.cover_letter,
'cover_letters': cover_letters,
'revisions': revisions,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment