Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Progress on the report card

  • Loading branch information...
commit 87a20de334c93b960297114fef1cee558cbc822e 1 parent ea93e7e
@thedjpetersen authored
View
36 site_media/stylesheets/report_card.css
@@ -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;
+}
View
28 transcript/templates/transcript/report_card.html
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.