Skip to content

Commit a0e9f0d

Browse files
committed
fix(ticket): always show attachment, default to closed
1 parent 27dfdcb commit a0e9f0d

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

content/ticket.njk

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,19 @@
142142
</div>
143143
</div>
144144

145-
{% if ticketAttachments | length %}
146-
<details open>
147-
<summary class="ticket-details-summary">Attachments ({{ ticketAttachments | length }})</summary>
145+
<details>
146+
<summary class="ticket-details-summary">Attachments ({{ ticketAttachments | length }})</summary>
148147

149-
<ul class="ticket-attachments">
150-
{% for attachment in ticketAttachments %}
151-
<li>
152-
<a href="/attachment/ticket/{{ attachment.id }}/{{ attachment.filename }}">{{ attachment.filename }}</a> ({{ attachment.size | bytesToKilos }}) - added by {{ attachment.author }}
153-
<strong>{{ attachment.time | yearsAgo }}</strong>.<br />
154-
{{ attachment.description | tracToHTML | safe }}
155-
</li>
156-
{% endfor %}
157-
</ul>
158-
</details>
159-
{% endif %}
148+
<ul class="ticket-attachments">
149+
{% for attachment in ticketAttachments %}
150+
<li>
151+
<a href="/attachment/ticket/{{ attachment.id }}/{{ attachment.filename }}">{{ attachment.filename }}</a> ({{ attachment.size | bytesToKilos }}) - added by {{ attachment.author }}
152+
<strong>{{ attachment.time | yearsAgo }}</strong>.<br />
153+
{{ attachment.description | tracToHTML | safe }}
154+
</li>
155+
{% endfor %}
156+
</ul>
157+
</details>
160158

161159
<details open>
162160
<summary class="ticket-details-summary">Change History ({{ ticket.changes | length }})</summary>

0 commit comments

Comments
 (0)