The job-page.html was already properly calling job.can_recreate() to know if it was possible to render again the same job, but job.html wasn't.
Signed-off-by: Thomas Petazzoni <[email protected]> --- www/templates/maposmatic/job.html | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/www/templates/maposmatic/job.html b/www/templates/maposmatic/job.html index 1bfa15b..8f4f0b8 100644 --- a/www/templates/maposmatic/job.html +++ b/www/templates/maposmatic/job.html @@ -29,7 +29,7 @@ {% load extratags %} {% if not single %} -{% if not job.needs_waiting %} +{% if not job.needs_waiting and job.can_recreate %} <form method="post" action="{% url recreate %}" class="recreate"> <input type="hidden" name="jobid" value="{{ job.id }}" /> <input type="submit" value="{% trans "Recreate map" %}" /> -- 1.7.4.1
