[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH 1/2] job: call job.can_recreate() to know if sho
From: |
Thomas Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH 1/2] job: call job.can_recreate() to know if showing the "Recreate" link is allowed |
Date: |
Sat, 14 Apr 2012 19:07:33 +0200 |
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 <address@hidden>
---
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
- [Maposmatic-dev] [PATCH 1/2] job: call job.can_recreate() to know if showing the "Recreate" link is allowed,
Thomas Petazzoni <=