]> git.0d.be Git - django-panik-nonstop.git/commitdiff
move zone addition date to end for form
authorFrédéric Péters <fpeters@0d.be>
Wed, 5 Aug 2020 08:47:43 +0000 (10:47 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 5 Aug 2020 09:52:14 +0000 (11:52 +0200)
nonstop/templates/nonstop/track_detail.html

index 95a170ebaf150cea0d4cf093e93abc6f65e72253..a349414f9c508e0fc37e8c1d65286ce3475d01fb 100644 (file)
@@ -42,8 +42,6 @@
 <audio src="{{object.file_path}}" controls></audio>
 {% endif %}
 
-<p>In nonstop since {{ object.added_to_nonstop_timestamp|date:"SHORT_DATE_FORMAT" }}.</p>
-
 {% if object.duration %}
 <p>Duration: {{object.duration}}</p>
 {% endif %}
 <form method="POST">
   {% csrf_token %}
   {{ metadata_form.as_p }}
+  {% if object.added_to_nonstop_timestamp %}
+  <p>In nonstop since {{ object.added_to_nonstop_timestamp|date:"SHORT_DATE_FORMAT" }}.</p>
+  {% endif %}
+
   <div class="buttons">
     <button class="submit-button">{% trans "Update" %}</button>
   </div>