Permalink
Browse files

Progress on the report card

  • Loading branch information...
thedjpetersen committed Jun 15, 2011
1 parent ea93e7e commit 87a20de334c93b960297114fef1cee558cbc822e
Showing with 62 additions and 2 deletions.
  1. +36 −0 site_media/stylesheets/report_card.css
  2. +26 −2 transcript/templates/transcript/report_card.html
@@ -0,0 +1,36 @@
+h3{
+ margin-top:1em;
+}
+
+.report-class{
+ margin:10px;
+}
+
+.report-class span{
+ font-size:1.3em;
+}
+
+.grade{
+ font-size:1.5em;
+ font-weight:bold;
+}
+
+.grade-A{
+ color:#008500;
+}
+
+.grade-B{
+ color:#006363;
+}
+
+.grade-C{
+ color:#A66F00;
+}
+
+.grade-D{
+ color:#A64B00;
+}
+
+.grade-F{
+ color:#A60000;
+}
@@ -1,10 +1,34 @@
{% extends "application.html" %}
+{% block header %}
+ <link rel="stylesheet" type="text/css" href="/site_media/stylesheets/report_card.css" />
+{% endblock %}
+
{% block content %}
<div class="span-24 last">
<h1>Report Card</h1>
+ <h2>Report Card By term</h2>
+ {% for term in term_groups %}
+ {% for term_name, group in term.items %}
+ <h3>{{term_name}}</h3>
+ {% for class in group %}
+ <div class="span-24 last report-class">
+ <div class="span-4">
+ <span>{{class.department}} {{class.number}}</span>
+ </div>
+ <div class="span-8">
+ <span>{{class.title}}</span>
+ </div>
+ <div class="span-6">
+ <span>{{class.credits}}</span>
+ </div>
+ <div class="span-6 last grade grade-{{class.grade|first}}">
+ <span>{{class.grade}}</span>
+ </div>
+ </div>
+ {% endfor %}
+ {% endfor %}
+ {% endfor%}
<h2>Grade Distribution</h2>
- {{ term_groups }}
- {{ grade_distribution }}
</div>
{% endblock %}

0 comments on commit 87a20de

Please sign in to comment.