[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
bisitz
bisitz at source.lon-capa.org
Thu Oct 4 11:28:51 EDT 2012
bisitz Thu Oct 4 15:28:51 2012 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- Improved transparency to students about HurryUpColor: Added title to due date text
- Replaced deprecated font tags with appropriate css
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.487 loncom/interface/lonnavmaps.pm:1.488
--- loncom/interface/lonnavmaps.pm:1.487 Tue Jun 19 10:11:35 2012
+++ loncom/interface/lonnavmaps.pm Thu Oct 4 15:28:51 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.487 2012/06/19 10:11:35 foxr Exp $
+# $Id: lonnavmaps.pm,v 1.488 2012/10/04 15:28:51 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
@@ -692,7 +692,7 @@
my $maxtries = $res->maxtries($part);
my $triesString = "";
if ($tries && $maxtries) {
- $triesString = '<font size="-1"><i>('.&mt('[_1] of [quant,_2,try,tries] used',$tries,$maxtries).')</i></font>';
+ $triesString = '<span class="LC_fontsize_medium"><i>('.&mt('[_1] of [quant,_2,try,tries] used',$tries,$maxtries).')</i></span>';
if ($maxtries > 1 && $maxtries - $tries == 1) {
$triesString = "<b>$triesString</b>";
}
@@ -996,7 +996,7 @@
$nonLinkedText .= ' <span class="LC_info">('.&mt('conditionally hidden').')</span> ';
}
if (($resource->is_practice()) && ($resource->is_raw_problem())) {
- $nonLinkedText .=' <font color="green"><b>'.&mt('not graded').'</b></font>';
+ $nonLinkedText .=' <span class="LC_info"><b>'.&mt('not graded').'</b></span>';
}
# We're done preparing and finally ready to start the rendering
@@ -1129,21 +1129,23 @@
$params->{'multipart'} && $part eq "0";
my $color;
+ my $info = '';
if ($resource->is_problem() || $resource->is_practice()) {
$color = $colormap{$resource->status};
if (dueInLessThan24Hours($resource, $part) ||
lastTry($resource, $part)) {
$color = $hurryUpColor;
+ $info = ' title="'.&mt('Due in less than 24 hours!').'"';
}
}
if ($resource->kind() eq "res" &&
$resource->is_raw_problem() &&
!$firstDisplayed) {
- if ($color) {$result .= "<font color=\"$color\"><b>"; }
+ if ($color) {$result .= '<span style="color:'.$color.'"'.$info.'><b>'; }
$result .= getDescription($resource, $part);
- if ($color) {$result .= "</b></font>"; }
+ if ($color) {$result .= "</b></span>"; }
}
if ($resource->is_map() && &advancedUser() && $resource->randompick()) {
$result .= &mt('(randomly select [_1])', $resource->randompick());
@@ -1225,11 +1227,11 @@
}
$return.= $td . $totalParts . ' parts: ';
foreach my $status (@statuses) {
- if ($overallstatus{$status}) {
- $return.="<font color='" . $statusColors{$status} .
- "'>" . $overallstatus{$status} . ' '
- . $statusStrings{$status} . "</font>";
- }
+ if ($overallstatus{$status}) {
+ $return.='<span style="color:' . $statusColors{$status}
+ . '">' . $overallstatus{$status} . ' '
+ . $statusStrings{$status} . '</span>';
+ }
}
$return.= $endtd;
return $return;
More information about the LON-CAPA-cvs
mailing list