version 1.576, 2023/06/04 13:25:21
|
version 1.577, 2023/07/12 17:43:24
|
Line 554 sub page_start {
|
Line 554 sub page_start {
|
&& $env{'request.state'} eq 'construct') { |
&& $env{'request.state'} eq 'construct') { |
if ($target eq 'web' || $target eq 'edit') { |
if ($target eq 'web' || $target eq 'edit') { |
unless ($env{'form.inhibitmenu'} eq 'yes') { |
unless ($env{'form.inhibitmenu'} eq 'yes') { |
|
my $text = 'Authoring Space'; |
|
my $href = &Apache::loncommon::authorspace($env{'request.uri'}); |
|
if ($env{'request.course.id'}) { |
|
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
|
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
|
if ($href eq "/priv/$cdom/$cnum/") { |
|
$text = &mt('Course Authoring Space'); |
|
} |
|
} |
# Breadcrumbs for Authoring Space |
# Breadcrumbs for Authoring Space |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
'text' => 'Authoring Space', |
'text' => $text, |
'href' => &Apache::loncommon::authorspace($env{'request.uri'}), |
'href' => $href, |
}); |
}); |
# breadcrumbs (and tools) will be created |
# breadcrumbs (and tools) will be created |
# in start_page->bodytag->innerregister |
# in start_page->bodytag->innerregister |