--- loncom/homework/structuretags.pm 2006/02/10 23:44:53 1.333
+++ loncom/homework/structuretags.pm 2006/02/16 02:03:25 1.336
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.333 2006/02/10 23:44:53 albertel Exp $
+# $Id: structuretags.pm,v 1.336 2006/02/16 02:03:25 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -113,6 +113,12 @@ sub page_start {
&Apache::lonhtmlcommon::htmlareaheaders().
&Apache::lonhtmlcommon::spellheader().
&Apache::lonxml::fontsettings();
+ my $css_href = &Apache::lonnet::EXT('resource.0.cssfile');
+ if ($css_href =~ /\S/) {
+ &Apache::lonxml::extlink($css_href);
+ $head_tag_start =
+ '';
+ }
if ($target eq 'edit') {
$head_tag_start.=&Apache::edit::js_change_detection();
}
@@ -622,9 +628,12 @@ sub start_problem {
$form_tag_start.=''.
''.
+ value="'.&mt('New Problem Variation').'" />';
+ if (exists($env{'form.username'})) {
+ $form_tag_start.=
'';
+ }
if ($env{'request.role.adv'}) {
$form_tag_start.=
'