app/soc/templates/soc/templatetags/_as_student_proposal_review.html
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 05 Apr 2009 19:37:56 +0000
changeset 2085 2f04b8ec3b96
parent 1916 71b3f3521a10
permissions -rw-r--r--
Use different colors for public/private comment widget Patch by: Dmitri Gaskin <dmitrig01@gmail.com>

{% 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 %}

<div class="studentproposalreview studentproposalreview-{% if is_public %}public{% else %}private{% endif %}">
  <div class="title">
    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 %}
  </div>
  {% if from_student %}
    <div class="student">
  {% else %}
    <div class="other">
  {% endif %}
    <p>{{ content|safe }}</p>
  </div>
</div>