--- loncom/homework/structuretags.pm 2024/02/27 19:53:40 1.512.2.24.2.11 +++ loncom/homework/structuretags.pm 2024/02/27 22:23:13 1.512.2.24.2.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.512.2.24.2.11 2024/02/27 19:53:40 raeburn Exp $ +# $Id: structuretags.pm,v 1.512.2.24.2.12 2024/02/27 22:23:13 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1574,10 +1574,13 @@ sub access_status_msg { $msg ='\noindent \vskip 1 mm '. $startminipage.'\vskip 0 mm'; if ($status eq 'UNAVAILABLE') { - $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm '; + $msg.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.'); + } elsif ($status eq 'CLOSED' || $status eq 'INVALID_ACCESS') { + $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg"; } else { - $msg.=&mt('Problem is not open to be viewed. It')." $accessmsg \\vskip 0 mm "; + $msg.=&mt('Problem is not open to be viewed.'); } + $msg .= " \\vskip 0 mm "; } return $msg; }