version 1.41, 2009/08/11 15:15:01
|
version 1.41.2.1, 2009/08/13 05:07:55
|
Line 204 sub phaseone {
|
Line 204 sub phaseone {
|
$r->print('<p class="LC_warning">'.&mt('No previous versions published.').'</p>'); |
$r->print('<p class="LC_warning">'.&mt('No previous versions published.').'</p>'); |
} |
} |
|
|
my $dir = &Apache::loncommon::authorspace() |
$r->print('<p><a href="/priv/'.$uname.$fn.'">' |
.&File::Basename::dirname($fn) |
.&mt('Back to [_1]','<span class="LC_filename">'.$fn.'</span>') |
.'/'; |
.'</a></p>'); |
$r->print(&Apache::lonhtmlcommon::start_funclist() |
|
.&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="/priv/'.$uname.$fn.'">' |
|
.&mt('Back to Resource') |
|
.'</a>') |
|
.&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="'.$dir.'">' |
|
.&mt('Back to Directory') |
|
.'</a>') |
|
.&Apache::lonhtmlcommon::end_funclist() |
|
); |
|
} |
} |
|
|
# ---------------------------------- Interface for presenting specified version |
# ---------------------------------- Interface for presenting specified version |
Line 334 sub handler {
|
Line 323 sub handler {
|
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
|
|
# Breadcrumbs |
$r->print(&Apache::loncommon::start_page('Retrieve Published Resources')); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'Construction Space', |
|
'href' => &Apache::loncommon::authorspace(), |
|
}); |
|
&Apache::lonhtmlcommon::add_breadcrumb({ |
|
'text' => 'Retrieve previous version', |
|
'href' => '', |
|
}); |
|
|
|
$r->print(&Apache::loncommon::start_page('Retrieve Published Resources') |
|
.&Apache::lonhtmlcommon::breadcrumbs() |
|
.&Apache::loncommon::head_subbox( |
|
&Apache::loncommon::CSTR_pageheader()) # FIXME crumbs broken? |
|
); |
|
|
|
$r->print('<p>' |
$r->print('<p>' |
.&mt('Retrieve previous versions of [_1]' |
.&mt('Retrieve previous versions of [_1]' |
,'<span class="LC_filename">'.$fn.'</span>') |
,'<span class="LC_filename">'.$fn.'</span>') |