| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK Online Homework Delivery System |
2 | # WeBWorK Online Homework Delivery System |
| 3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
3 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 4 | # $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.185 2005/09/16 18:50:50 sh002i Exp $ |
4 | # $CVSHeader: webwork2/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.186 2005/09/24 00:51:58 dpvc Exp $ |
| 5 | # |
5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify it under |
6 | # This program is free software; you can redistribute it and/or modify it under |
| 7 | # the terms of either: (a) the GNU General Public License as published by the |
7 | # the terms of either: (a) the GNU General Public License as published by the |
| 8 | # Free Software Foundation; either version 2, or (at your option) any later |
8 | # Free Software Foundation; either version 2, or (at your option) any later |
| 9 | # version, or (b) the "Artistic License" which comes with this package. |
9 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 301 | } else { |
301 | } else { |
| 302 | $summary = $problemResult->{summary}; # summary has been defined by grader |
302 | $summary = $problemResult->{summary}; # summary has been defined by grader |
| 303 | } |
303 | } |
| 304 | return |
304 | return |
| 305 | CGI::table({-class=>"attemptResults"}, CGI::Tr(\@tableRows)) |
305 | CGI::table({-class=>"attemptResults"}, CGI::Tr(\@tableRows)) |
| 306 | . ($showSummary ? CGI::p({class=>'emphasis'},$summary) : ""); |
306 | . ($showSummary ? CGI::p({class=>'attemptResultsSummary'},$summary) : ""); |
| 307 | } |
307 | } |
| 308 | |
308 | |
| 309 | |
309 | |
| 310 | # Note: previewAnswer is lifted into GatewayQuiz.pm |
310 | # Note: previewAnswer is lifted into GatewayQuiz.pm |
| 311 | |
311 | |