Diff for /loncom/interface/lonmenu.pm between versions 1.444 and 1.445

version 1.444, 2016/04/04 17:24:05 version 1.445, 2016/04/05 02:02:28
Line 947  ENDMENUITEMS Line 947  ENDMENUITEMS
                 }                  }
             }              }
         }          }
           my $showprogress;
           if (($crstype eq 'Placement') && (!$env{'request.role.adv'})) {
               $showprogress = &placement_progress();
           }
   
    my $addremote=0;
    foreach (@inlineremote) { if ($_ ne '') { $addremote=1; last;} }
   
     my $addremote=0;  
     foreach (@inlineremote) { if ($_ ne '') { $addremote=1; last;} }  
     if ($addremote) {      if ($addremote) {
         my $countdown;          my $countdown;
         if ($env{'request.filename'} =~ /\.page$/) {          if ($env{'request.filename'} =~ /\.page$/) {
Line 969  ENDMENUITEMS Line 974  ENDMENUITEMS
             if ($countdown) {              if ($countdown) {
                 &Apache::lonhtmlcommon::add_breadcrumb_tool('tools',$countdown);                  &Apache::lonhtmlcommon::add_breadcrumb_tool('tools',$countdown);
             }              }
               if ($showprogress) {
                   &Apache::lonhtmlcommon::add_breadcrumb_tool('tools',$showprogress);
               }
         } else {          } else {
             my @tools = @inlineremote[93,91,81,82,83];              my @tools = @inlineremote[93,91,81,82,83];
             if ($countdown) {              if ($countdown) {
Line 987  ENDMENUITEMS Line 995  ENDMENUITEMS
             }              }
             &advtools_crumbs(@inlineremote);              &advtools_crumbs(@inlineremote);
         }          }
       } else {
           if ($showprogress) {
               &Apache::lonhtmlcommon::add_breadcrumb_tool('tools',$showprogress);
           }
     }      }
     my ($topic_help,$topic_help_text);      my ($topic_help,$topic_help_text);
     if ($is_const_dir == 2) {      if ($is_const_dir == 2) {
Line 2534  END Line 2546  END
     return;      return;
 }  }
   
   sub placement_progress {
       my ($totalpoints,$incomplete) = &Apache::lonplacementtest::check_completion(undef,undef,1);
       my $complete = 100 - $incomplete;
       return '<span class="LC_placement_prog">'.
              &mt('Test is [_1]% complete',$complete).'</span>';
   }
   
 # ================================================================ Main Program  # ================================================================ Main Program
   
 BEGIN {  BEGIN {

Removed from v.1.444  
changed lines
  Added in v.1.445


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>