Diff for /loncom/interface/lonmenu.pm between versions 1.552 and 1.560

version 1.552, 2024/05/13 13:55:51 version 1.560, 2025/01/07 22:21:56
Line 615  sub secondary_menu { Line 615  sub secondary_menu {
                 && !$env{'request.course.id'};                  && !$env{'request.course.id'};
         next if    $$menuitem[4]   =~ /^crsedit/          next if    $$menuitem[4]   =~ /^crsedit/
                 && (!$canedit && !$canvieweditor);                  && (!$canedit && !$canvieweditor);
           next if    $$menuitem[4]  eq 'crseditCourse'
                   && ($crstype eq 'Community');
           next if    $$menuitem[4]  eq 'crseditCommunity'
                   && ($crstype ne 'Community');
         next if    $$menuitem[4]  eq 'nvgr'          next if    $$menuitem[4]  eq 'nvgr'
                 && ($canvgr || $ltiexc{'grades'});                  && ($canvgr || $ltiexc{'grades'});
         next if    $$menuitem[4]  eq 'vgr'          next if    $$menuitem[4]  eq 'vgr'
Line 1262  s&7&2&prt.png&Print&printout[_1]&gocstr( Line 1266  s&7&2&prt.png&Print&printout[_1]&gocstr(
 s&7&1&del.png&Delete&dir[_3]&gocstr('/adm/cfile?action=delete','$esc_currdir')&Delete this Directory  s&7&1&del.png&Delete&dir[_3]&gocstr('/adm/cfile?action=delete','$esc_currdir')&Delete this Directory
 ENDMENUITEMS  ENDMENUITEMS
                 unless ($crsauthor_cstr) {                  unless ($crsauthor_cstr) {
                     if ($env{'environment.authorarchive'}) {                      if (($env{'environment.canarchive'}) &&
                           ($uname eq $env{'user.name'}) && ($udom eq $env{'user.domain'})) {
                         $menuitems .= (<<ENDMENUITEMS);                          $menuitems .= (<<ENDMENUITEMS);
 s&7&7&archive.png&Export&dir[_1]&gocstr('/adm/authorexport','$esc_currdir')&Export Authoring Space Archive  s&7&7&archive.png&Export&dir[_1]&gocstr('/adm/cfile?action=archive','$esc_currdir')&Export Authoring Space Archive
 ENDMENUITEMS  ENDMENUITEMS
                     }                      }
                 }                  }
Line 2686  sub utilityfunctions { Line 2691  sub utilityfunctions {
     my $esc_url=&escape($currenturl);      my $esc_url=&escape($currenturl);
     my $esc_symb=&escape($currentsymb);      my $esc_symb=&escape($currentsymb);
     my $newname = &mt('New Name');      my $newname = &mt('New Name');
       &js_escape(\$newname);
   
     my $countdown = &countdown_toggle_js();      my $countdown = &countdown_toggle_js();
   
Line 2694  sub utilityfunctions { Line 2700  sub utilityfunctions {
         ($env{'request.symb'} ne '') &&          ($env{'request.symb'} ne '') &&
         ($env{'request.filename'}=~/$LONCAPA::assess_re/)) {          ($env{'request.filename'}=~/$LONCAPA::assess_re/)) {
         my $canview;          my $canview;
         foreach my $priv ('msg','vgr') {          foreach my $priv ('mgr','vgr') {
             $canview = &Apache::lonnet::allowed($priv,$env{'request.course.id'});              $canview = &Apache::lonnet::allowed($priv,$env{'request.course.id'});
             if (!$canview && $env{'request.course.sec'} ne '') {              if (!$canview && $env{'request.course.sec'} ne '') {
                 $canview =                  $canview =
Line 2940  sub serverform { Line 2946  sub serverform {
     if (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self')) {      if (($env{'request.deeplink.login'}) && ($env{'request.deeplink.target'} eq '_self')) {
         $target = ' target="_self"';          $target = ' target="_self"';
     }      }
       my $submit = &mt('Submit');
     return(<<ENDSERVERFORM);      return(<<ENDSERVERFORM);
 <form name="server" action="/adm/logout" method="post"$target>  <form name="server" action="/adm/logout" method="post"$target aria-hidden="true">
 <input type="hidden" name="postdata" value="none" />  <input type="hidden" name="postdata" value="none" />
 <input type="hidden" name="command" value="none" />  <input type="hidden" name="command" value="none" />
 <input type="hidden" name="url" value="none" />  <input type="hidden" name="url" value="none" />
 <input type="hidden" name="symb" value="none" />  <input type="hidden" name="symb" value="none" />
   <input type="submit" value="$submit" class="LC_visually_hidden" tabindex="-1" disabled="disabled" />
 </form>  </form>
 ENDSERVERFORM  ENDSERVERFORM
 }  }
Line 3110  sub roles_selector { Line 3118  sub roles_selector {
         $js = &jump_to_role($cdom,$cnum,\%seccount,\%courseroles,\%courseprivs,          $js = &jump_to_role($cdom,$cnum,\%seccount,\%courseroles,\%courseprivs,
                             \%roledesc,$privref,$menucoll,$menuref);                              \%roledesc,$privref,$menucoll,$menuref);
         $form =           $form = 
             '<form name="rolechooser" method="post" action="'.$httphost.'/adm/roles"'.$targetattr.'>'."\n".              '<form name="rolechooser" method="post" action="'.$httphost.'/adm/roles"'.$targetattr.' aria-hidden="true">'."\n".
             '  <input type="hidden" name="destinationurl" value="'.              '  <input type="hidden" name="destinationurl" value="'.
             &HTML::Entities::encode($destinationurl).'" />'."\n".              &HTML::Entities::encode($destinationurl).'" />'."\n".
             '  <input type="hidden" name="gotorole" value="1" />'."\n".              '  <input type="hidden" name="gotorole" value="1" />'."\n".
Line 3120  sub roles_selector { Line 3128  sub roles_selector {
             $form .= '  <input type="hidden" name="destsymb" value="'.              $form .= '  <input type="hidden" name="destsymb" value="'.
                         &HTML::Entities::encode($destsymb).'" />'."\n";                          &HTML::Entities::encode($destsymb).'" />'."\n";
         }          }
         $form .= '</form>'."\n";          $form .= '<input type="submit" value="'.&mt('Submit').'" class="LC_visually_hidden" tabindex="-1" disabled="disabled" />'."\n".
                    '</form>'."\n";
         foreach my $role (@roles_order) {          foreach my $role (@roles_order) {
             my $include;              my $include;
             if (defined($courseroles{$role})) {              if (defined($courseroles{$role})) {
Line 3609  $donebutton Line 3618  $donebutton
 <span id="ddcountcollapse" class="LC_menubuttons_inline_text">  <span id="ddcountcollapse" class="LC_menubuttons_inline_text">
 $collapse  $collapse
 </span></a>  </span></a>
 <span id="duedatecountdown" class="LC_menubuttons_inline_text" style="display: $currdisp;"></span>  <span id="duedatecountdown" class="LC_menubuttons_inline_text" style="display: $currdisp;" role="timer"></span>
 <a href="javascript:toggleCountdown();" class="LC_menubuttons_link">  <a href="javascript:toggleCountdown();" class="LC_menubuttons_link">
 <span id="ddcountexpand" class="LC_menubuttons_inline_text" >$expand</span>  <span id="ddcountexpand" class="LC_menubuttons_inline_text" >$expand</span>
 <img src="/res/adm/pages/timer.png" title="$desc" class="LC_icon" alt="$alttxt" /><span class="LC_menubuttons_inline_text">$title</span></a>  <img src="/res/adm/pages/timer.png" title="$desc" class="LC_icon" alt="$alttxt" /><span class="LC_menubuttons_inline_text">$title</span></a>

Removed from v.1.552  
changed lines
  Added in v.1.560


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