Added new template tag for a review.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 07 Mar 2009 15:19:06 +0000
changeset 1713 e39ae44d0298
parent 1712 30c6322b93c1
child 1714 bfdef9380954
Added new template tag for a review. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/templates/soc/templatetags/_as_review.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/soc/templates/soc/templatetags/_as_review.html	Sat Mar 07 15:19:06 2009 +0000
@@ -0,0 +1,23 @@
+{% comment %}
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+
+<li class="{{ comment_class }}">
+On {{ created|date:"jS F Y H:i" }}
+{% if is_public %}
+{{ author }} wrote:
+{% else %}
+{{ author }} gave a score of <b>{{ score }}</b> and wrote:
+{% endif %}
+<p>{{ content|safe }}</p>
+</li>