--- loncom/interface/loncommon.pm 2006/09/06 19:22:43 1.451 +++ loncom/interface/loncommon.pm 2006/09/19 21:47:32 1.457 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.451 2006/09/06 19:22:43 albertel Exp $ +# $Id: loncommon.pm,v 1.457 2006/09/19 21:47:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -257,7 +257,7 @@ of the element the selection from the se sub browser_and_searcher_javascript { my ($mode)=@_; if (!defined($mode)) { $mode='edit'; } - my $resurl=&lastresurl(); + my $resurl=&escape_single(&lastresurl()); return <'.$link.''; + ($target?' target="$target"':'').' title="'.&mt("View this user's personal page").'">'.$link.''; } # ------------------------------------------------------------ Syllabus Wrapper @@ -3199,10 +3199,12 @@ form, .inline { display: inline; } color: red; font-size: larger; } -.LC_warning { +.LC_warning, +.LC_diff_removed { color: red; } -.LC_success { +.LC_success, +.LC_diff_added { color: green; } .LC_icon { @@ -3370,7 +3372,7 @@ table.LC_data_table tr.LC_data_table_hig background-color: $data_table_darker; } table.LC_data_table tr.LC_empty_row td, -table.LC_whatsnew tr.LC_empty_row td, { +table.LC_whatsnew tr.LC_empty_row td { background-color: #FFFFFF; font-weight: bold; font-style: italic; @@ -3499,7 +3501,8 @@ table#LC_browser tr.LC_browser_file_unpu table#LC_browser tr.LC_browser_file_obsolete { background: #AAAAAA; } -table#LC_browser tr.LC_browser_file_modified { +table#LC_browser tr.LC_browser_file_modified, +table#LC_browser tr.LC_browser_file_metamodified { background: #FFFF77; } table#LC_browser tr.LC_browser_folder { @@ -5950,15 +5953,6 @@ sub lonhttpdurl { return 'http://'.$ENV{'SERVER_NAME'}.':'.$lonhttpd_port.$url; } -sub absolute_url { - my ($host_name) = @_; - my $protocol = ($ENV{'SERVER_PORT'} == 443?'https://':'http://'); - if ($host_name eq '') { - $host_name = $ENV{'SERVER_NAME'}; - } - return $protocol.$host_name; -} - sub connection_aborted { my ($r)=@_; $r->print(" ");$r->rflush();