app/templates/projrev/proposal/review.html
changeset 14 9d720dfded68
parent 0 c94bd9ae70d2
child 26 97bd3c28c957
--- a/app/templates/projrev/proposal/review.html	Fri Aug 07 03:04:57 2009 +0530
+++ b/app/templates/projrev/proposal/review.html	Fri Aug 07 03:16:44 2009 +0530
@@ -55,14 +55,32 @@
       {{ form.as_p }}
 		<br />	
 		<input class="button" type="submit" value="Submit Review" />		
-		</p>		
+		</p>
 	</form>
 				
-	<p class="post-footer align-right">					
-		<span class="comments">Reviews (5)</span>
-		<span class="date">Last reviewed: Nov 11, 2006</span>
-		<span class="date">Last submitted: Nov 11, 2006</span>	
-	</p>
+	 <p class="post-footer align-right">
+    <span class="comments">Reviews:
+    {% if nr_reviews %}
+      {{ nr_reviews }}
+    {% else %}
+      (<i>None</i>)
+    {% endif %}
+    </span>
+    <span class="date">Last reviewed:
+    {% if last_reviewed %}
+      {{ last_reviewed|date:"jS F Y h:iA" }}
+    {% else %}
+      (<i>Not Reviewed</i>)
+    {% endif %}
+    </span>
+    <span class="date">Last submitted:
+    {% if last_submitted %}
+      {{ last_submitted|date:"jS F Y h:iA" }}
+    {% else %}
+      (<i>New Submission</i>)
+    {% endif %} 
+    </span> 
+  </p>
 				
 </div>
 {% endblock content %}
\ No newline at end of file