--- loncom/homework/bridgetask.pm 2012/04/11 11:40:00 1.259 +++ loncom/homework/bridgetask.pm 2013/07/15 16:13:12 1.262 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.259 2012/04/11 11:40:00 goltermann Exp $ +# $Id: bridgetask.pm,v 1.262 2013/07/15 16:13:12 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -719,7 +719,15 @@ sub start_Task { 'slot' => $slot_name}); ($version,$previous)=&get_version(); } - + if (($target eq 'web') && ($version ne '') && ($slot_name ne '')) { + if (ref($slot) eq 'HASH') { + if ($slot->{'endtime'} > time()) { + $result .= + &Apache::lonhtmlcommon::set_due_date($slot->{'endtime'}); + } + } + } + my $status_id = 'LC_task_take'; if ($previous && $target eq 'answer') { $status_id = 'LC_task_answer'; @@ -988,7 +996,7 @@ sub get_key_todo { my $classlist=&get_limited_classlist(); if (!&allow_grade_user($classlist->{$uname.':'.$udom})) { return (undef,'not_allowed', - &mt('Requested student ([_1]) is in a section you aren\'t allowed to grade.',$uname.':'.$udom)); + &mt("Requested student ([_1]) is in a section you aren't allowed to grade.",$uname.':'.$udom)); } } my $gradingkey=&encode_queue_key($symb,$udom,$uname); @@ -1788,7 +1796,7 @@ sub show_queue { $result.=(<$status -
+ @@ -2207,7 +2215,7 @@ sub select_user { $result.=&Apache::loncommon::start_data_table_row(); $result.=< - +