version 1.165, 2015/12/03 20:40:46
|
version 1.168, 2016/06/10 22:31:34
|
Line 375 sub startpage {
|
Line 375 sub startpage {
|
|
|
$r->print(&Apache::loncommon::head_subbox( |
$r->print(&Apache::loncommon::head_subbox( |
'<div style="float:right;padding-top:0;margin-top;0">' |
'<div style="float:right;padding-top:0;margin-top;0">' |
.&Apache::lonhtmlcommon::display_usage($current_disk_usage,$disk_quota) |
.&Apache::lonhtmlcommon::display_usage($current_disk_usage, |
|
$disk_quota,'authoring') |
.'</div>' |
.'</div>' |
.&Apache::loncommon::CSTR_pageheader())); |
.&Apache::loncommon::CSTR_pageheader())); |
|
|
Line 914 sub putresource {
|
Line 915 sub putresource {
|
if ($filename=~/$LONCAPA::assess_re/) { |
if ($filename=~/$LONCAPA::assess_re/) { |
$editlink=' (<a href="'.$linkdir.'/'.$filename.'?editmode=Edit&problemmode=editxml">'.&mt('EditXML').'</a>)'; |
$editlink=' (<a href="'.$linkdir.'/'.$filename.'?editmode=Edit&problemmode=editxml">'.&mt('EditXML').'</a>)'; |
$editlink2=' <br />(<a href="'.$linkdir.'/'.$filename.'?editmode=Edit&problemmode=edit">'.&mt('Edit').'</a>)'; |
$editlink2=' <br />(<a href="'.$linkdir.'/'.$filename.'?editmode=Edit&problemmode=edit">'.&mt('Edit').'</a>)'; |
|
} |
|
if ($filename=~/\.(xml|html|htm|xhtml|xhtm)$/ || $filename=~/$LONCAPA::assess_re/) { |
if ($env{'browser.type'} ne 'explorer' || $env{'browser.version'} > 9) { |
if ($env{'browser.type'} ne 'explorer' || $env{'browser.version'} > 9) { |
my $daxeurl = '/adm/daxe/daxe.html?config=config/loncapa_config.xml&file=/daxeopen'.$linkdir.'/'.$filename.'&save=/daxesave'; |
my $daxeurl = '/daxepage'.$linkdir.'/'.$filename; |
$editlink .= ' (<a href="'.$daxeurl.'" target="_blank">Daxe</a>)'; |
$editlink .= ' (<a href="'.$daxeurl.'" target="_blank">Daxe</a>)'; |
} |
} |
} |
} |