From 1e03df132dc263baf3434aa6daf47b373e564377 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 16 May 2024 12:36:44 +0100 Subject: wip: markdown implemented for description field but working on help_text --- pyblackbird_cc/templates/resources/resource_detail.html | 5 +++-- pyblackbird_cc/templates/resources/resource_metadata_update.html | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index 70c1b11..8391cca 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -1,5 +1,7 @@ {% extends 'base.html' %} +{% load markdown_extras %} + {% block content %}
@@ -71,8 +73,7 @@ {% endfor %}
-

What's included?

-
{{ resource.description }}
+
{{ resource.description | markdown | safe }}
diff --git a/pyblackbird_cc/templates/resources/resource_metadata_update.html b/pyblackbird_cc/templates/resources/resource_metadata_update.html index 4c318c7..2c6daa1 100644 --- a/pyblackbird_cc/templates/resources/resource_metadata_update.html +++ b/pyblackbird_cc/templates/resources/resource_metadata_update.html @@ -17,9 +17,8 @@
{% csrf_token %} - {{ form|crispy }} + {% crispy form form.helper %} {# now for the submit button #} -
-- cgit v1.2.3