Skip to content

Commit df6f1ec

Browse files
committed
Render note content as markdown
1 parent aa1679e commit df6f1ec

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

application/templates/consideration.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -269,26 +269,26 @@ <h2 class="govuk-heading-l">Design process stages</h2>
269269
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
270270
<section id="notes">
271271
<h2 class="govuk-heading-l">Notes</h2>
272-
<ul class="govuk-list govuk-list--bullet govuk-list--spaced">
272+
<a href="{{ url_for('planning_consideration.add_note', slug=consideration.slug)}}" class="govuk-button govuk-button--secondary"><i class="app-icon">+</i>Add note</a>
273+
<ul class="govuk-list govuk-list--spaced">
273274
{% for note in consideration.notes %}
274275
{% if not note.deleted_date %}
275276
<li>
276-
<p>{{ note.text }}</p>
277-
<span class="govuk-!-font-size-14">author: {{ note.author }}</span>
278-
<span class="govuk-!-font-size-14">added: {{ note.created }}</span>
279-
<br>
280-
<span class="govuk-!-font-size-14">
281-
<a href="{{ url_for('planning_consideration.edit_note', slug=consideration.slug, note_id=note.id )}}" class="govuk-link" >Edit<span class="govuk-visually-hidden"> note</span></a>
282-
</span>
283-
<span class="govuk-!-font-size-14">
284-
<a href="{{ url_for('planning_consideration.delete_note', slug=consideration.slug, note_id=note.id )}}" class="govuk-link
285-
app-destructive-link" >Remove<span class="govuk-visually-hidden"> note</span></a>
286-
</span>
277+
<span class="govuk-!-font-size-14">{{ note.author }} (created: {{ note.created }})</span>
278+
<div class="app-note__content">{{ note.text|render_markdown }}</div>
279+
<div class="app-note__actions">
280+
<span class="govuk-!-font-size-14">
281+
<a href="{{ url_for('planning_consideration.edit_note', slug=consideration.slug, note_id=note.id )}}" class="govuk-link" >Edit<span class="govuk-visually-hidden"> note</span></a>
282+
</span>
283+
<span class="govuk-!-font-size-14">
284+
<a href="{{ url_for('planning_consideration.delete_note', slug=consideration.slug, note_id=note.id )}}" class="govuk-link
285+
app-destructive-link" >Remove<span class="govuk-visually-hidden"> note</span></a>
286+
</span>
287+
</div>
287288
</li>
288289
{% endif %}
289290
{% endfor %}
290291
</ul>
291-
<a href="{{ url_for('planning_consideration.add_note', slug=consideration.slug)}}" class="govuk-button govuk-button--secondary"><i class="app-icon">+</i>Add note</a>
292292
</section>
293293
{% endif %}
294294

0 commit comments

Comments
 (0)