--- loncom/interface/lonhtmlcommon.pm 2012/01/02 05:07:06 1.298
+++ loncom/interface/lonhtmlcommon.pm 2012/01/03 00:28:29 1.300
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.298 2012/01/02 05:07:06 raeburn Exp $
+# $Id: lonhtmlcommon.pm,v 1.300 2012/01/03 00:28:29 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1462,11 +1462,11 @@ returns: nothing
}
my $links;
if ((&show_return_link) && (!$CourseBreadcrumbs)) {
- my $alttext = 'Go Back';
+ my $alttext = &mt('Go Back');
$links=&htmltag( 'a',"",
{ href => '/adm/flip?postdata=return:',
title => &mt("Back to most recent content resource") });
- $links=&htmltag('li',$links);
+ $links=&htmltag('li',$links);
}
$links.= join "",
map {
@@ -2003,26 +2003,41 @@ sub course_custom_roles {
sub resource_info_box {
- my ($symb,$onlyfolderflag)=@_;
+ my ($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp)=@_;
my $return='';
+ if ($stuvcurrent ne '') {
+ $return = '
'.&mt('No context provided.').'
'; } + if ($stuvcurrent ne '') { + $return .= '