From 25febe255ac230b45501b10526e2e66303d1aeb8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 20 2014 09:29:15 +0000 Subject: Adjust the new_issue template that it can also be used to edit an issue --- diff --git a/progit/templates/new_issue.html b/progit/templates/new_issue.html index dc99a30..2ab67b3 100644 --- a/progit/templates/new_issue.html +++ b/progit/templates/new_issue.html @@ -7,10 +7,20 @@ {% block repo %} +{% if not type or type == 'new' %}

New issue

+{% elif type and type == 'edit' %} +

Edit issue #{{ issue.id }}

+{% endif %} +
+ {% if not type or type == 'new' %}
+ {% elif type and type == 'edit' %} + + {% endif %} + {{ render_field_in_row(form.title) }} {{ render_field_in_row(form.content) }}