MDL-63390 quiz_statistics: Make the summary row more distinguishable
This commit is contained in:
committed by
Simey Lameze
parent
24c28f3c9b
commit
422d78648c
@@ -100,6 +100,7 @@ $string['quizname'] = 'Quiz name';
|
||||
$string['quizoverallstatistics'] = 'Quiz overall statistics';
|
||||
$string['quizstructureanalysis'] = 'Quiz structure analysis';
|
||||
$string['random_guess_score'] = 'Random guess score';
|
||||
$string['rangeofvalues'] = 'Range of statistics for these questions';
|
||||
$string['rangebetween'] = '{$a->min} − {$a->max}';
|
||||
$string['recalculatenow'] = 'Recalculate now';
|
||||
$string['reportsettings'] = 'Statistics calculation settings';
|
||||
@@ -116,5 +117,5 @@ $string['statisticsreportgraph'] = 'Statistics for question positions';
|
||||
$string['statistics:view'] = 'View statistics report';
|
||||
$string['statsfor'] = 'Quiz statistics (for {$a})';
|
||||
$string['variant'] = 'Variant';
|
||||
$string['viewanalysis'] = 'View analysis of these questions';
|
||||
$string['viewanalysis'] = 'View details';
|
||||
$string['whichtries'] = 'Analyze responses for';
|
||||
|
||||
@@ -262,7 +262,7 @@ class quiz_statistics_table extends flexible_table {
|
||||
// analysis page with specific text to clearly indicate the link to the user.
|
||||
// Random and variant question rows will render the name without a link to improve clarity
|
||||
// in the UI.
|
||||
$name = html_writer::link($url, get_string('viewanalysis', 'quiz_statistics'));
|
||||
$name = html_writer::div(get_string('rangeofvalues', 'quiz_statistics'));
|
||||
} else if (!$israndomquestion && !$questionstat->get_variants() && !$questionstat->get_sub_question_ids()) {
|
||||
// Question cannot be broken down into sub-questions or variants. Link will show response analysis page.
|
||||
$name = html_writer::link($url,
|
||||
@@ -277,7 +277,9 @@ class quiz_statistics_table extends flexible_table {
|
||||
$name = html_writer::tag('div', $name, array('class' => 'dubious'));
|
||||
}
|
||||
|
||||
if (!empty($questionstat->minmedianmaxnotice)) {
|
||||
if ($this->is_calculated_question_summary($questionstat)) {
|
||||
$name .= html_writer::link($url, get_string('viewanalysis', 'quiz_statistics'));
|
||||
} else if (!empty($questionstat->minmedianmaxnotice)) {
|
||||
$name = get_string($questionstat->minmedianmaxnotice, 'quiz_statistics') . '<br />' . $name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user