Commit 2a2bc9e3 by Bridger Maxwell

Showing due dates and section types on profile page.

parent a58ac226
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
<p class="subtitle"> <p class="subtitle">
${section['format']} ${section['format']}
% if 'time' in section and section['time']!="":
(${int(section['time'])/60} min)
% endif
% if 'due' in section and section['due']!="": % if 'due' in section and section['due']!="":
due ${section['due']} due ${section['due']}
% endif % endif
......
...@@ -113,14 +113,22 @@ $(function() { ...@@ -113,14 +113,22 @@ $(function() {
percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else "" percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else ""
%> %>
${ hw['section'] }</a> ${"({}/{}) {}".format( earned, total, percentageString )}</h3> ${ hw['section'] }</a> ${"({}/{}) {}".format( earned, total, percentageString )}</h3>
${hw['subtitle']}
% if 'due' in hw and hw['due']!="":
due ${hw['due']}
% endif
<ul> <ul>
%if len(hw['scores']) > 0: %if len(hw['scores']) > 0:
%if hw['graded']:
Problem Scores: Problem Scores:
%else:
Practice Scores:
%endif %endif
% for score in hw['scores']: % for score in hw['scores']:
<li>${ score[0] }/${ score[1] }</li> <li>${ score[0] }/${ score[1] }</li>
% endfor % endfor
%endif
</ul> </ul>
</div> </div>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment