[LON-CAPA-cvs] cvs: loncom /homework lonsimpleproblemedit.pm
raeburn
raeburn at source.lon-capa.org
Thu Nov 8 16:55:11 EST 2012
raeburn Thu Nov 8 21:55:11 2012 EDT
Modified files:
/loncom/homework lonsimpleproblemedit.pm
Log:
- Consistent Interface for templated pages (bug 6128).
- Function for Templated "Simple Problem" page moved into standard location.
Index: loncom/homework/lonsimpleproblemedit.pm
diff -u loncom/homework/lonsimpleproblemedit.pm:1.32 loncom/homework/lonsimpleproblemedit.pm:1.33
--- loncom/homework/lonsimpleproblemedit.pm:1.32 Sun Jun 6 02:40:35 2010
+++ loncom/homework/lonsimpleproblemedit.pm Thu Nov 8 21:55:11 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Simple Problem Parameter Setting "Editor"
#
-# $Id: lonsimpleproblemedit.pm,v 1.32 2010/06/06 02:40:35 raeburn Exp $
+# $Id: lonsimpleproblemedit.pm,v 1.33 2012/11/08 21:55:11 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -262,15 +262,8 @@
$spell_header));
if ($symb) {
my $title='<h1>'.&Apache::lonnet::gettitle($symb).'</h1>';
- my $displaylink = &get_parent_uri($symb);
- if ($displaylink ne '') {
- my $functions=&Apache::lonhtmlcommon::start_funclist()
- .&Apache::lonhtmlcommon::add_item_funclist(
- '<a href="'.$displaylink.'">'
- .&mt('Student View').'</a>')
- .&Apache::lonhtmlcommon::end_funclist();
- $r->print(&Apache::loncommon::head_subbox($functions)
- .$title);
+ if (&get_parent_uri($symb)) {
+ $r->print($title);
} else {
$r->print($title
.'<p class="LC_error">'
@@ -420,7 +413,7 @@
}
$r->print(&Apache::loncommon::end_page());
return OK;
-}
+}
1;
__END__
More information about the LON-CAPA-cvs
mailing list