]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14079, improve UI consistency, merged from MOODLE_19_STABLE
authordongsheng <dongsheng>
Tue, 8 Apr 2008 03:49:58 +0000 (03:49 +0000)
committerdongsheng <dongsheng>
Tue, 8 Apr 2008 03:49:58 +0000 (03:49 +0000)
course/lib.php

index 13dd31dac4f622adf7844df7ca74063e08f24592..a1325baef989838e6adf402048e228ed3d174caa 100644 (file)
@@ -1878,7 +1878,7 @@ function print_course($course) {
                     if ($ra->hidden == 0 || $canseehidden) {
                         $fullname = fullname($ra->user, $canviewfullnames); 
                         if($ra->hidden == 1){
-                           $fullname .= ' ('.get_string('hiddenassign').')'; 
+                            $status = " <img src=\"{$CFG->pixpath}/t/show.gif\" title=\"".get_string('userhashiddenassignments', 'role')."\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
                         }
 
                         if (isset($aliasnames[$ra->roleid])) {
@@ -1887,7 +1887,7 @@ function print_course($course) {
 
                         $namesarray[] = format_string($ra->rolename) 
                             . ': <a href="'.$CFG->wwwroot.'/user/view.php?id='.$ra->user->id.'&amp;course='.SITEID.'">'
-                            . $fullname . '</a>'; 
+                            . $fullname . '</a>' . $status
                     }
                 }
             }