Skip to content
Snippets Groups Projects
Commit 1657a97e authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Add a link to the dependency checker.

parent 05ef54d5
No related branches found
No related tags found
No related merge requests found
...@@ -70,8 +70,12 @@ echo $OUTPUT->header(); ...@@ -70,8 +70,12 @@ echo $OUTPUT->header();
echo $OUTPUT->heading($title); echo $OUTPUT->heading($title);
echo '<p>This tool only acts on succesfully compiled questions, to compile questions run the bulk tester ' . echo '<p>This tool only acts on succesfully compiled questions, to compile questions run the bulk tester ' .
'or preview/use those questions. Currently there are ' . $ncompiled . ' compiled questions and ' . $nnotcompiled . 'or preview/use those questions.</p><p>';
' questions that have not been succesfully compiled.'; if ($ncompiled !== $notcompiled) {
echo stack_string_error('errors') . '. ';
}
echo 'Currently there are ' . $ncompiled . ' compiled questions and ' . $nnotcompiled .
' questions that have not been succesfully compiled.</p>';
echo $OUTPUT->single_button( echo $OUTPUT->single_button(
new moodle_url($PAGE->url, array('includes' => 1, 'sesskey' => sesskey())), new moodle_url($PAGE->url, array('includes' => 1, 'sesskey' => sesskey())),
......
...@@ -11,6 +11,7 @@ Done. ...@@ -11,6 +11,7 @@ Done.
1. Rename testing page as "STACK question dashboard" and make it much easier to add a test case based on the teacher's answer. 1. Rename testing page as "STACK question dashboard" and make it much easier to add a test case based on the teacher's answer.
2. Better cleaning of unicode from students' input strings. 2. Better cleaning of unicode from students' input strings.
3. Add link to the dependency checker to the plugin page.
TODO: track down bug in assignments/evaluation affecting the inputs. TODO: track down bug in assignments/evaluation affecting the inputs.
......
...@@ -83,6 +83,7 @@ $string['boxsize'] = 'Input box size'; ...@@ -83,6 +83,7 @@ $string['boxsize'] = 'Input box size';
$string['boxsize_help'] = 'Width of the html formfield.'; $string['boxsize_help'] = 'Width of the html formfield.';
$string['boxsize_link'] = '%%WWWROOT%%/question/type/stack/doc/doc.php/Authoring/Inputs.md#Box_Size'; $string['boxsize_link'] = '%%WWWROOT%%/question/type/stack/doc/doc.php/Authoring/Inputs.md#Box_Size';
$string['bulktestindexintro_desc'] = 'The <a href="{$a->link}">run the question tests in bulk script</a> lets you easily run all the STACK questions in a given context. Not only does this test the questions. It is also a good way to re-populate the CAS cache after it has been cleared.'; $string['bulktestindexintro_desc'] = 'The <a href="{$a->link}">run the question tests in bulk script</a> lets you easily run all the STACK questions in a given context. Not only does this test the questions. It is also a good way to re-populate the CAS cache after it has been cleared.';
$string['dependenciesintro_desc'] = 'Check questions for <a href="{$a->link}">dependencies</a>, such as use of JSXGraph or inclusion of external maxima code.';
$string['checkanswertype'] = 'Check the type of the response'; $string['checkanswertype'] = 'Check the type of the response';
$string['checkanswertype_help'] = 'If yes, answers which are of a different "type" (e.g. expression, equation, matrix, list, set) are rejected as invalid.'; $string['checkanswertype_help'] = 'If yes, answers which are of a different "type" (e.g. expression, equation, matrix, list, set) are rejected as invalid.';
$string['checkanswertype_link'] = '%%WWWROOT%%/question/type/stack/doc/doc.php/Authoring/Inputs.md#Check_Type'; $string['checkanswertype_link'] = '%%WWWROOT%%/question/type/stack/doc/doc.php/Authoring/Inputs.md#Check_Type';
......
...@@ -42,6 +42,8 @@ $links = array( ...@@ -42,6 +42,8 @@ $links = array(
array('link' => (string) new moodle_url('/question/type/stack/adminui/studentinputs.php'))), array('link' => (string) new moodle_url('/question/type/stack/adminui/studentinputs.php'))),
get_string('bulktestindexintro_desc', 'qtype_stack', get_string('bulktestindexintro_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/bulktestindex.php'))), array('link' => (string) new moodle_url('/question/type/stack/adminui/bulktestindex.php'))),
get_string('dependenciesintro_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/dependencies.php'))),
get_string('stackInstall_replace_dollars_desc', 'qtype_stack', get_string('stackInstall_replace_dollars_desc', 'qtype_stack',
array('link' => (string) new moodle_url('/question/type/stack/adminui/replacedollarsindex.php'))), array('link' => (string) new moodle_url('/question/type/stack/adminui/replacedollarsindex.php'))),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment