app/soc/templates/soc/templatetags/_as_student_proposal_review.html
author Lennard de Rijk <ljvderijk@gmail.com>
Mon, 16 Mar 2009 21:17:04 +0000
changeset 1897 634617545037
child 1916 71b3f3521a10
permissions -rw-r--r--
Added a new template tag to serve up background color for StudentProposals Reviews. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed

{% 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="studentproposalreview">
{% if from_student %}
  <div class="student">
{% else %}
  <div class="other">
{% endif %}
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>
</div>
</li>