From b18d7c1f03a3b6b234512c457085c9d0fa295b80 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Fri, 24 Feb 2012 23:06:52 -0500 Subject: [PATCH 1/2] Fixed format specifier to not print out 12 instead of 12.0 on profile page --- profile.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile.html b/profile.html index fd5b3ef0ab..a126ad1fe9 100644 --- a/profile.html +++ b/profile.html @@ -108,7 +108,7 @@ $(function() { %>

- ${ section['section'] } ${"({0}/{1}) {2}".format( earned, total, percentageString )}

+ ${ section['section'] } ${"({0:g}/{1:g}) {2}".format( earned, total, percentageString )} ${section['subtitle']} %if 'due' in section and section['due']!="": due ${section['due']} @@ -118,7 +118,7 @@ $(function() {
    ${ "Problem Scores: " if section['graded'] else "Practice Scores: "} %for score in section['scores']: -
  1. ${ score[0] }/${ score[1] }
  2. +
  3. ${"{0:g}/{1:g}".format(score[0],score[1])}
  4. %endfor
%endif From f0e2b6002493f8bf8ab20e505363768b1f0b1c81 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Fri, 24 Feb 2012 23:39:23 -0500 Subject: [PATCH 2/2] Fixed bug where tooltip of profile graph totals wouldn't show up --- profile_graphs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile_graphs.js b/profile_graphs.js index 502c3c1469..5ffbde5521 100644 --- a/profile_graphs.js +++ b/profile_graphs.js @@ -58,7 +58,7 @@ $(function () { color: colors[${sectionIndex}].toString(), }); ticks = ticks.concat( [ [${tickIndex}, "${section['totallabel']}"] ] ); - detail_tooltips["${section['category']} Average"] = [ "${section['totalscore']['summary']}" ]; + detail_tooltips["${section['category']} Total"] = [ "${section['totalscore']['summary']}" ]; <% tickIndex += 1 + sectionSpacer %> %else: ##This is for sections like midterm or final, which have no smaller components