--- loncom/interface/lonhtmlcommon.pm 2020/01/16 19:44:52 1.358.2.17.2.1 +++ loncom/interface/lonhtmlcommon.pm 2020/09/02 00:48:18 1.358.2.17.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.358.2.17.2.1 2020/01/16 19:44:52 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.358.2.17.2.2 2020/09/02 00:48:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2539,9 +2539,9 @@ sub course_custom_roles { sub resource_info_box { - my ($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp)=@_; + my ($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp,$divforres)=@_; my $return=''; - if ($stuvcurrent ne '') { + if (($stuvcurrent ne '') || ($divforres)) { $return = '
'; } if ($symb) { @@ -2570,7 +2570,7 @@ sub resource_info_box { } else { $return='

'.&mt('No context provided.').'

'; } - if ($stuvcurrent ne '') { + if (($stuvcurrent ne '') || ($divforres)) { $return .= '
'; } return $return;