[LON-CAPA-cvs] cvs: loncom /interface lonquickgrades.pm mydesk.tab

www www@source.lon-capa.org
Fri, 03 Dec 2010 22:00:28 -0000


www		Fri Dec  3 22:00:28 2010 EDT

  Modified files:              
    /loncom/interface	lonquickgrades.pm mydesk.tab 
  Log:
  Access to grading
  
  
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.55 loncom/interface/lonquickgrades.pm:1.56
--- loncom/interface/lonquickgrades.pm:1.55	Fri Dec  3 21:33:52 2010
+++ loncom/interface/lonquickgrades.pm	Fri Dec  3 22:00:28 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Quick Student Grades Display
 #
-# $Id: lonquickgrades.pm,v 1.55 2010/12/03 21:33:52 www Exp $
+# $Id: lonquickgrades.pm,v 1.56 2010/12/03 22:00:28 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -121,24 +121,24 @@
     my $allowed_to_edit =  &Apache::lonnet::allowed('mgr',$env{'request.course.id'});
 
     if ($allowed_to_view) {
-       $r->print('<table><tr>');
-       if ($notshowTotals)  { $r->print ('<td>'.&mt('Students do not see total points.').'</td>'); }
-       if ($notshowSPRSlink){ $r->print ('<td>'.&mt('Students do not see link to spreadsheet.').'</td>'); }
-       if ($showPoints)     { $r->print ('<td>'.&mt('Students will see points based on problem weights.').'</td>'); }
-       if ($showCategories) { $r->print ('<td>'.&mt('Students will see points based on categories.').'</td>'); }
-       $r->print('<td>'.&Apache::lonhtmlcommon::coursepreflink(&mt('Grade display settings'),'grading').'</td></td></table>');
+       $r->print('<div id="LC_head_subbox">');
+       if ($notshowTotals)  { $r->print ('&nbsp;'.&mt('Students do not see total points.').'&nbsp;'); }
+       if ($notshowSPRSlink){ $r->print ('&nbsp;'.&mt('Students do not see link to spreadsheet.').'&nbsp;'); }
+       if ($showPoints)     { $r->print ('&nbsp;'.&mt('Students will see points based on problem weights.').'&nbsp;'); }
+       if ($showCategories) { $r->print ('&nbsp;'.&mt('Students will see points based on categories.').'&nbsp;'); }
+       $r->print('&nbsp;'.&Apache::lonhtmlcommon::coursepreflink(&mt('Grade display settings'),'grading').'</div>');
     }
 
 
-    $r->print('<ul class="LC_TabContentBigger" id="main">');
-    $r->print('<li'.($mode eq 'quick'?' class="active"':'').'><a href="/adm/quickgrades"><b>'.
+    $r->print("\n".'<ul class="LC_TabContentBigger" id="main">');
+    $r->print("\n".'<li'.($mode eq 'quick'?' class="active"':'').'><a href="/adm/quickgrades"><b>'.
                                           ($showPoints?&mt('Points'):($showCategories?&mt('Grades'):&mt('Completion'))).'</b></a></li>');
 
     if (!($showPoints || $notshowSPRSlink) || ($allowed_to_view)) {
-       $r->print('<li'.($mode eq 'spreadsheet'?' class="active"':'').'><a href="/adm/'.($allowed_to_view?'classcalc':'studentcalc').'"><b>'.
+       $r->print("\n".'<li'.($mode eq 'spreadsheet'?' class="active"':'').'><a href="/adm/'.($allowed_to_view?'classcalc':'studentcalc').'"><b>'.
                                                                  &mt('Spreadsheet').'</b></a></li>');
     }
-    $r->print('</ul>');
+    $r->print("\n".'</ul>'."\n");
     $r->print('<div class="LC_Box" style="clear:both;margin:0;"><div id="maincoursedoc" style="margin:0 0;padding:0 0;"><div class="LC_ContentBox" id="mainCourseDocuments" style="display: block;">');
 }
 
Index: loncom/interface/mydesk.tab
diff -u loncom/interface/mydesk.tab:1.140 loncom/interface/mydesk.tab:1.141
--- loncom/interface/mydesk.tab:1.140	Thu Dec  2 06:00:12 2010
+++ loncom/interface/mydesk.tab	Fri Dec  3 22:00:28 2010
@@ -147,8 +147,11 @@
 2:2:community:any:nav.png:commun[_1]:contents[_2]:gopost('/adm/navmaps','');:Table of community contents:cmc
 2:3:clear
 3:1:clear
-3:1:course:any:grds.png:my[_1]:grades[_1]:go('/adm/quickgrades');:View current problem status and grading information:grd
-3:1:community:any:grds.png:my[_1]:grades[_1]:go('/adm/quickgrades');:View current problem status and grading information:grd
+3:1:pmgr:$crs:sprs.png:course[_4]:grades[_2]:go('/adm/grades');:Grading:grd
+3:1:pmgr:$cmty:sprs.png:communi-[_2]:ty grade[_1]:go('/adm/grades');:Grading:grd
+3:3:clear
+3:3:course:any:grds.png:my[_1]:grades[_1]:go('/adm/quickgrades');:View current problem status and grading information:grd
+3:3:community:any:grds.png:my[_1]:grades[_1]:go('/adm/quickgrades');:View current problem status and grading information:grd
 4:1:clear
 4:1:pvgr:$crs:sprs.png:course[_4]:grades[_2]:go('/adm/classcalc');:View calculated grades (Spreadsheet):grd
 4:1:pvgr:$cmty:sprs.png:communi-[_2]:ty grade[_1]:go('/adm/classcalc');:View calculated grades (Spreadsheet):grd