Fixed layout for StudentProposal reviews.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/content/css/soc-090417.css Tue Mar 17 18:02:11 2009 +0000
+++ b/app/soc/content/css/soc-090417.css Tue Mar 17 18:03:31 2009 +0000
@@ -481,8 +481,15 @@
}
/*
- * CUSTOM CLASSES
+ * STUDENT PROPOSAL REVIEWS
*/
+.studentproposalreview {
+ font-size: small;
+}
+
+.studentproposalreview .title {
+ background-color: #e5ecf9;
+}
.studentproposalreview .student{
background: #d0f5a9;
@@ -492,6 +499,11 @@
background: #f5f6ce;
}
+
+/*
+ * CUSTOM CLASSES
+ */
+
.todo {
color: #cc0000;
font-size: 80%;
--- a/app/soc/templates/soc/templatetags/_as_student_proposal_review.html Tue Mar 17 18:02:11 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_student_proposal_review.html Tue Mar 17 18:03:31 2009 +0000
@@ -12,18 +12,20 @@
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 class="studentproposalreview">
+ <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>
-</li>