");
$("#LC_rt_"+id).click(editorHandler);
});
+ $.fn.jPicker.defaults.images.clientPath="/adm/jpicker/images/";
+ $(".colorchooser").jPicker();
+
+
});
';
+ # Code to put a due date countdown in 'duedatecountdown' span.
+ # This is currently located in the breadcrumb headers.
+ # note that the dueDateLayout is internatinoalized below.
+ # Here document is used to support the substitution into the javascript below.
+ # ..which unfortunately necessitates escaping the $'s in the javascript.
+
+ my $dueDateLayout = '' . &mt('Due in: {dn} {dl} {hnn}{sep}{mnn}{sep}{snn}') . '';
+ $output .= <
+ //
+
+";
+
+}
+
############################################################
############################################################
@@ -1538,9 +1528,11 @@ returns: nothing
}
my $links;
if ((&show_return_link) && (!$CourseBreadcrumbs)) {
- $links=&htmltag( 'a',"",
+ 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.= join "",
map {
@@ -1567,9 +1559,12 @@ returns: nothing
# last breadcrumb is the first order heading of a page
# for course breadcrumbs it's just bold
+
$links .= &htmltag( 'li', htmltag($CourseBreadcrumbs ? 'b' : 'h1',
$lasttext), {title => $lasttext});
+ $links .= '
';
+
my $icons = '';
$faq = $last->{'faq'} if (exists($last->{'faq'}));
$bug = $last->{'bug'} if (exists($last->{'bug'}));
@@ -1587,6 +1582,7 @@ returns: nothing
$faq,$bug);
}
#
+
unless ($CourseBreadcrumbs) {
@@ -1595,12 +1591,14 @@ returns: nothing
$links = &htmltag('ul', $links, { class => "LC_CourseBreadcrumbs" });
}
+
if ($component) {
$links = &htmltag('span',
( $no_mt ? $component : mt($component) ).
( $icons ? $icons : '' ),
{ class => 'LC_breadcrumbs_component' } )
- .$links;
+ .$links
+;
}
&render_tools(\$links);
@@ -1611,7 +1609,12 @@ returns: nothing
# Return the @Crumbs stack to what we started with
push(@Crumbs,$last);
shift(@Crumbs);
+
+
# Return the breadcrumb's line
+
+
+
return "$links";
}
@@ -2077,26 +2080,41 @@ sub course_custom_roles {
sub resource_info_box {
- my ($symb,$onlyfolderflag)=@_;
+ my ($symb,$onlyfolderflag,$stuvcurrent,$stuvdisp)=@_;
my $return='';
+ if ($stuvcurrent ne '') {
+ $return = '
';
+ }
if ($symb) {
- $return=&Apache::loncommon::start_data_table();
+ $return.=&Apache::loncommon::start_data_table();
my ($map,$id,$resource)=&Apache::lonnet::decode_symb($symb);
my $folder=&Apache::lonnet::gettitle($map);
$return.=&Apache::loncommon::start_data_table_row().
- '