| … | |
… | |
| 368 | CGI::em("This problem produced an error") |
368 | CGI::em("This problem produced an error") |
| 369 | : CGI::div({class=>"RenderSolo"}, $pg->{body_text}); |
369 | : CGI::div({class=>"RenderSolo"}, $pg->{body_text}); |
| 370 | |
370 | |
| 371 | |
371 | |
| 372 | my $edit_link = ''; |
372 | my $edit_link = ''; |
| 373 | if($self->{r}->param('browse_which') ne 'browse_library') { |
373 | #if($self->{r}->param('browse_which') ne 'browse_library') { |
|
|
374 | if($sourceFileName !~ /^Library\//) { |
| 374 | $edit_link = CGI::a({href=>$self->systemLink($urlpath->newFromModule("WeBWorK::ContentGenerator::Instructor::PGProblemEditor", |
375 | $edit_link = CGI::a({href=>$self->systemLink($urlpath->newFromModule("WeBWorK::ContentGenerator::Instructor::PGProblemEditor", |
| 375 | courseID =>$urlpath->arg("courseID"), |
376 | courseID =>$urlpath->arg("courseID"), |
| 376 | setID=>"Undefined_Set", |
377 | setID=>"Undefined_Set", |
| 377 | problemID=>"1"), |
378 | problemID=>"1"), |
| 378 | params=>{sourceFilePath => "$sourceFileName"} |
379 | params=>{sourceFilePath => "$sourceFileName"} |