Skip to content
Snippets Groups Projects
Commit b9811cdc authored by Tim Hunt's avatar Tim Hunt
Browse files

Display count of number of deployed variants.

Also, improve some wording.
parent 3a15cd34
Branches
No related tags found
No related merge requests found
......@@ -305,8 +305,13 @@ $string['deletetestcase'] = 'Delete test case {$a->no} for question {$a->questio
$string['deletetestcaseareyousure'] = 'Are you sure you want to delete test case {$a->no} for question {$a->question}?';
$string['deletethistestcase'] = 'Delete this test case...';
$string['deploy'] = 'Deploy';
$string['deployedvariantoptions'] = 'The following variants have been deployed:';
$string['deployedvariants'] = 'Deployed variants';
$string['deployedvariantsn'] = 'Deployed variants ({$a})';
$string['deploymany'] = 'Attempt to automatically deploy the following number of variants:';
$string['deploymanyerror'] = 'Error in user input: cannot deploy "{$a->err}" variants.';
$string['deploymanynonew'] = 'Too many repeated existing question notes were generated.';
$string['deploymanynotes'] = 'Note, STACK will give up if there are 3 failed attempts to generate a new question note, or when one question test fails.';
$string['deploymanysuccess'] = 'Number of new variants successfully created, tested and deployed: {$a->no}.';
$string['editingtestcase'] = 'Editing test case {$a->no} for question {$a->question}';
$string['editthistestcase'] = 'Edit this test case...';
$string['expectedanswernote'] = 'Expected answer note';
......@@ -329,7 +334,7 @@ $string['questiondoesnotuserandomisation'] = 'This question does not use randomi
$string['questionnotdeployedyet'] = 'No variants of this question have been deployed yet.';
$string['questionpreview'] = 'Question preview';
$string['questiontests'] = 'Question tests';
$string['runquestiontests'] = 'Run the question tests...';
$string['runquestiontests'] = 'Question tests & deployed versions';
$string['showingundeployedvariant'] = 'Showing undeployed variant: {$a}';
$string['alreadydeployed'] = ' A variant matching this Question note is already deployed.';
$string['switchtovariant'] = 'Switch to arbitrary variant';
......@@ -339,11 +344,7 @@ $string['testinputs'] = 'Test inputs';
$string['testinputsimpwarning'] = 'Please note that test inputs are always <em>unsimplified</em> regardless of the question or PRT option setting. Please use <tt>ev(...,simp)</tt> to simplify part or all of the test input expressions.';
$string['testthisvariant'] = 'Switch to test this variant';
$string['undeploy'] = 'Un-deploy';
$string['deploymany'] = 'Attempt to automatically deploy the following number of variants:';
$string['deploymanynotes'] = 'Note, STACK will give up if there are 3 failed attempts to generate a new question note, or when one question test fails.';
$string['deploymanyerror'] = 'Error in user input: cannot deploy "{$a->err}" variants.';
$string['deploymanynonew'] = 'Too many repeated existing question notes were generated.';
$string['deploymanysuccess'] = 'Number of new variants successfully created, tested and deployed: {$a->no}.';
$string['variant'] = 'Variant';
// Support scripts (CAS chat, healthcheck, etc.)
$string['all'] = 'All';
......
......@@ -104,7 +104,11 @@ if (!is_null($deployfeedbackerr)) {
}
// Display the list of deployed variants, with UI to edit the list.
if ($question->deployedseeds) {
echo $OUTPUT->heading(stack_string('deployedvariantsn', count($question->deployedseeds)), 3);
} else {
echo $OUTPUT->heading(stack_string('deployedvariants'), 3);
}
$variantmatched = false;
$variantdeployed = false;
......@@ -121,7 +125,7 @@ if (!$question->has_random_variants()) {
$notestable = new html_table();
$notestable->head = array(
stack_string('deployedvariants'),
stack_string('variant'),
stack_string('questionnote'),
);
$prtstable->attributes['class'] = 'generaltable stacktestsuite';
......@@ -164,7 +168,6 @@ if (!$question->has_random_variants()) {
);
}
echo html_writer::tag('p', stack_string('deployedvariantoptions'));
echo html_writer::table($notestable);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment