aboutsummaryrefslogtreecommitdiff
path: root/GradeBook_lib.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'GradeBook_lib.tcl')
-rwxr-xr-xGradeBook_lib.tcl11
1 files changed, 8 insertions, 3 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index 11280ee..17e8f6b 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -1405,11 +1405,16 @@ proc htmlFormatColVal { col_value columnname user user_shown permission_list {fo
UserHiddenGradeCategories \
]
- # adding histogram marker
if { ([SelectColValue4User GroupName $user_shown] ne "inforow") && ($user ni $special_user_names) && ($columnname ni $embeded_actions_excluded_special_columns) } {
+ # adding histogram marker
+ set hist_marker ""
set col_histogram_limits [SelectColValue4User $columnname _The_Grades_Hist_Limits_]
- set histPositionMarker [markNthBin [binInHistogram $col_value_raw $col_histogram_limits]]
- set col_str_value "<span class=histogram_marker>$histPositionMarker<br></span><span class=grade>$col_str_value</span>"
+ if { $col_histogram_limits ne "" } {
+ set histPositionMarker [markNthBin [binInHistogram $col_value_raw $col_histogram_limits]]
+ append hist_marker "<span class=histogram_marker>$histPositionMarker</span><br>"
+ }
+ # adding special span for grade itself
+ set col_str_value "$hist_marker<span class=grade>$col_str_value</span>"
}
if { ([SelectColValue4User GroupName $user_shown] ne "inforow") && ($user ni $special_user_names) && ($category ne "weighted_column") && ($columnname ni $embeded_actions_excluded_special_columns) } {