From b2cfe2acb0c7a9b3f9cc0d3e1fbf6c90b166830b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 27 2014 14:50:54 +0000 Subject: Fix the title in the new_issue template when editing an existing issue --- diff --git a/progit/templates/new_issue.html b/progit/templates/new_issue.html index 148c502..0e38e2c 100644 --- a/progit/templates/new_issue.html +++ b/progit/templates/new_issue.html @@ -1,7 +1,9 @@ {% extends "repo_master.html" %} {% from "_formhelper.html" import render_field_in_row %} -{% block title %}New issue - {{ repo.name }}{% endblock %} +{% block title %}{% if not type or type == 'new' + %}New issue{% elif type and type == 'edit' + %}Edit issue #{{ issueid }} {% endif %} - {{ repo.name }}{% endblock %} {%block tag %}new_project{% endblock %}