Skip to content

Commit

Permalink
Assign unread checkbox class only to unread submissions
Browse files Browse the repository at this point in the history
This is required to ensure the "Select unread" feature works
correctly.

Resolves #4653
  • Loading branch information
eloquence committed Jul 30, 2019
1 parent 5eaad3b commit 74df0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop/journalist_templates/col.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<input type="checkbox" name="doc_names_selected" value="{{ doc.filename }}" class="doc-check unread-cb">
<span title="{{ gettext('Unread') }}" class="icon"><i class="fa fa-envelope"></i></span>
{% else %}
<input type="checkbox" name="doc_names_selected" value="{{ doc.filename }}" class="doc-check unread-cb">
<input type="checkbox" name="doc_names_selected" value="{{ doc.filename }}" class="doc-check">
<span title="{{ gettext('Read') }}" class="icon"><i class="fa fa-envelope-open"></i></span>
{% endif %}
<a class="file {% if not doc.downloaded and not doc.filename.endswith('reply.gpg') %}unread{% else %}read{% endif %}" href="{{ url_for('col.download_single_file', filesystem_id=filesystem_id, fn=doc.filename) }}">
Expand Down

0 comments on commit 74df0e2

Please sign in to comment.