Diff for /loncom/interface/lonwhatsnew.pm between versions 1.85 and 1.90

version 1.85, 2009/02/04 13:03:44 version 1.90, 2009/02/24 16:16:35
Line 99  sub handler { Line 99  sub handler {
     &Apache::lonhtmlcommon::clear_breadcrumbs();      &Apache::lonhtmlcommon::clear_breadcrumbs();
     &Apache::lonhtmlcommon::add_breadcrumb      &Apache::lonhtmlcommon::add_breadcrumb
             ({href=>'/adm/whatsnew',              ({href=>'/adm/whatsnew',
               text=>"Display Action Items"});                text=>"What's New?"});
     if (($command eq 'chgthreshold') && $checkallowed{'abovethreshold'}) {      if (($command eq 'chgthreshold') && $checkallowed{'abovethreshold'}) {
         &Apache::lonhtmlcommon::add_breadcrumb          &Apache::lonhtmlcommon::add_breadcrumb
             ({href=>'/adm/whatsnew?command=chgthreshold&refpage='.$refpage,              ({href=>'/adm/whatsnew?command=chgthreshold&refpage='.$refpage,
Line 194  sub display_main_box { Line 194  sub display_main_box {
     );      );
     my %initpage = &Apache::lonlocal::texthash (      my %initpage = &Apache::lonlocal::texthash (
                      firstres => "first resource in the $lctype",                       firstres => "first resource in the $lctype",
                      whatsnew => "what's new? page",                       whatsnew => "What's New Page",
                      userpref => 'your general user preferences',                       userpref => 'your general user preferences',
                      coursespecific => "specific setting for this $lctype",                       coursespecific => "specific setting for this $lctype",
                    );                     );
Line 267  END Line 267  END
 ';  ';
     }      }
     my $course_type=&Apache::loncommon::course_type();      my $course_type=&Apache::loncommon::course_type();
     return &Apache::loncommon::start_page($course_type.' Action Items',      return &Apache::loncommon::start_page("What's New?",
   $scripttag);    $scripttag);
 }  }
   
Line 327  sub display_actions_box { Line 327  sub display_actions_box {
     my %threshold = ();      my %threshold = ();
     my %pagedesc = &Apache::lonlocal::texthash (      my %pagedesc = &Apache::lonlocal::texthash (
                      firstres => 'First resource',                       firstres => 'First resource',
                      whatsnew => "What's New? page",                       whatsnew => "What's New Page",
                      userpref => 'user preference',                       userpref => 'user preference',
                      coursespecific => $lctype.' only',                       coursespecific => $lctype.' only',
                      default => 'default',                       default => 'default',
Line 594  sub display_threshold_config { Line 594  sub display_threshold_config {
                  &Apache::loncommon::end_data_table_row());                   &Apache::loncommon::end_data_table_row());
     }      }
     $r->print(&Apache::loncommon::end_data_table()."\n".      $r->print(&Apache::loncommon::end_data_table()."\n".
           '<br /><input type="submit" name="threshold" value="'.&mt('Make changes').'" />            '<br /><input type="submit" name="threshold" value="'.&mt('Save').'" />
                  <input type="hidden" name="command" value="update" />                   <input type="hidden" name="command" value="update" />
                  <input type="hidden" name="refpage" value="'.$refpage.'" />                   <input type="hidden" name="refpage" value="'.$refpage.'" />
                </form>');                 </form>');
Line 650  sub display_interval_config { Line 650  sub display_interval_config {
     }      }
     $r->print('</select>&nbsp;&nbsp;      $r->print('</select>&nbsp;&nbsp;
                <input type="submit" name="display" value="'.                 <input type="submit" name="display" value="'.
                &mt('Change interval').'" /></form>');                 &mt('Save').'" /></form>');
     return;      return;
 }  }
   
Line 681  function toggle_countunread(choice) { Line 681  function toggle_countunread(choice) {
 }  }
 </script>');  </script>');
     $r->print('<br />'      $r->print('<br />'
              .&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.')               .&mt('Choose whether or not to display a count of the number of new posts for each resource or discussion board which has unread posts.')
              .'<br />'               .'<br />'
              .&mt("This can increase the time taken to gather data for the '<i>What's New?</i>' page by a few seconds.")               .&mt("This can increase the time taken to gather data for the [_1]What's New Page[_2] by a few seconds.",'<i>','</i>')
              .'&nbsp;&nbsp;'               .'&nbsp;&nbsp;'
              .&mt('Currently set to [_1].','<b>'.$current.'</b>.')               .&mt('Currently set to [_1].','<b>'.$current.'</b>.')
     );      );
Line 725  sub courseinit_config { Line 725  sub courseinit_config {
                              'anis' => 'and is set to display',                               'anis' => 'and is set to display',
                              'padc' => 'Page display controlled by',                               'padc' => 'Page display controlled by',
                              'chce' => 'Choose '.$lctype.' entry',                               'chce' => 'Choose '.$lctype.' entry',
                              'moce' => 'Modify '.$lctype.' entry',                               'moce' => 'Save',
     );      );
     $r->print(<<"END");       $r->print(<<"END"); 
 <br />$lt{'chwp'}  <br />$lt{'chwp'}

Removed from v.1.85  
changed lines
  Added in v.1.90


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