From d45c9dca43303219c0c0dc438a5d47b03acdc295 Mon Sep 17 00:00:00 2001 From: Nathan Yam Date: Sun, 14 May 2017 16:21:20 +1000 Subject: [PATCH] Add markdown editor when editing own torrents --- nyaa/templates/edit.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyaa/templates/edit.html b/nyaa/templates/edit.html index 3d505ac..6ea01d4 100644 --- a/nyaa/templates/edit.html +++ b/nyaa/templates/edit.html @@ -2,6 +2,7 @@ {% block title %}Edit {{ torrent.display_name }} :: {{ config.SITE_NAME }}{% endblock %} {% block body %} {% from "_formhelpers.html" import render_field %} +{% from "_formhelpers.html" import render_markdown_editor %}

Edit Torrent

@@ -28,7 +29,7 @@
- {{ render_field(form.description, class_='form-control') }} + {{ render_markdown_editor(form.description, field_name='description') }}