Finished 2.6 fixes

This commit is contained in:
Piotr Mitros
2012-02-04 15:22:51 -05:00
parent 2a2bc9e315
commit 076e727b88
2 changed files with 3 additions and 3 deletions

View File

@@ -110,9 +110,9 @@ $(function() {
<%
earned = hw['section_total'][0]
total = hw['section_total'][1]
percentageString = "{:.0%}".format( float(earned)/total) if earned > 0 else ""
percentageString = "{0:.0%}".format( float(earned)/total) if earned > 0 else ""
%>
${ hw['section'] }</a> ${"({}/{}) {}".format( earned, total, percentageString )}</h3>
${ hw['section'] }</a> ${"({0}/{1}) {2}".format( earned, total, percentageString )}</h3>
${hw['subtitle']}
% if 'due' in hw and hw['due']!="":
due ${hw['due']}

View File

@@ -47,7 +47,7 @@ $(function () {
detail_tooltips["${section['category']}"] = ${ json.dumps([score['summary'] for score in section['subscores']] ) };
droppedScores = droppedScores.concat(${ json.dumps( [[tickIndex + index, 0.05] for index in section['dropped_indices']]) });
<% dropExplanation = "The lowest {} {} scores are dropped".format( len(section['dropped_indices']), section['category'] ) %>
<% dropExplanation = "The lowest {0} {1} scores are dropped".format( len(section['dropped_indices']), section['category'] ) %>
detail_tooltips['Dropped Scores'] = detail_tooltips['Dropped Scores'].concat( ${json.dumps( [dropExplanation] * len(section['dropped_indices']) )} );
<% tickIndex += len(section['subscores']) + sectionSpacer %>