diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2018-05-28 21:49:23 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2018-05-28 21:49:23 -0400 |
commit | 09fb60f2541d2b9ebf3c6d7651325ee6dfc12b1c (patch) | |
tree | db3c278c8725b4d3063c83b048a5ef11cfe78cea /GradeBook_lib.tcl | |
parent | 99ac07fd4690a9f024a560e943106a989cf6d4ae (diff) | |
download | GradeBook-09fb60f2541d2b9ebf3c6d7651325ee6dfc12b1c.tar.gz GradeBook-09fb60f2541d2b9ebf3c6d7651325ee6dfc12b1c.zip |
do not show histogram marker if nessesary stats are not available
Diffstat (limited to 'GradeBook_lib.tcl')
-rwxr-xr-x | GradeBook_lib.tcl | 11 |
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) } { |