Showing due dates and section types on profile page.

This commit is contained in:
Bridger Maxwell
2012-02-04 12:45:46 -05:00
parent a58ac22686
commit 2a2bc9e315
2 changed files with 12 additions and 8 deletions

View File

@@ -19,10 +19,6 @@
<p class="subtitle">
${section['format']}
% if 'time' in section and section['time']!="":
(${int(section['time'])/60} min)
% endif
% if 'due' in section and section['due']!="":
due ${section['due']}
% endif

View File

@@ -113,14 +113,22 @@ $(function() {
percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else ""
%>
${ hw['section'] }</a> ${"({}/{}) {}".format( earned, total, percentageString )}</h3>
${hw['subtitle']}
% if 'due' in hw and hw['due']!="":
due ${hw['due']}
% endif
<ul>
%if len(hw['scores']) > 0:
Problem Scores:
%if hw['graded']:
Problem Scores:
%else:
Practice Scores:
%endif
% for score in hw['scores']:
<li>${ score[0] }/${ score[1] }</li>
% endfor
%endif
% for score in hw['scores']:
<li>${ score[0] }/${ score[1] }</li>
% endfor
</ul>
</div>
</li>