From 323c58f3025a2681f8ef1d23168dc96ec8557118 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 04 2018 13:19:55 +0000 Subject: Add a preview button when editing the initial comment of a PR Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/pull_request_title.html b/pagure/templates/pull_request_title.html index 0cb39ee..fbe1efd 100644 --- a/pagure/templates/pull_request_title.html +++ b/pagure/templates/pull_request_title.html @@ -8,7 +8,9 @@ {% block header %} - + {% endblock %} @@ -31,9 +33,24 @@ {{ render_bootstrap_field( form.title, field_description="the new title of your pull-request") }} - {{ render_bootstrap_field( - form.initial_comment, - field_description="description of your pull-request") }} + +
+ + + Preview + + + +
+ +
+
+
+
+

@@ -54,3 +71,59 @@ {% endblock %} + +{% block jscripts %} +{{ super() }} + + + + + + + +{% endblock %}