]> git.mjollnir.org Git - moodle.git/commitdiff
Make 'Edit profile" link blink, as a reminder, if not used yet
authormartin <martin>
Fri, 19 Jul 2002 12:08:30 +0000 (12:08 +0000)
committermartin <martin>
Fri, 19 Jul 2002 12:08:30 +0000 (12:08 +0000)
course/topics.php

index 42ea9fc1a2613ee0def41320ca2ab0136c796f57..24f02307547007452f1b4267eec9717ec4011767 100644 (file)
     print_simple_box("People", $align="CENTER", $width="100%", $color="$THEME->cellheading");
     $moddata[]="<A HREF=\"../user/index.php?id=$course->id\">List of all people</A>";
     $modicon[]="<IMG SRC=\"../user/users.gif\" HEIGHT=16 WIDTH=16 ALT=\"List of everyone\">";
-    $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
+    if ($USER->description) {
+        $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\">Edit my profile</A>";
+    } else {
+        $moddata[]="<A HREF=\"../user/view.php?id=$USER->id&course=$course->id\"><BLINK>Edit my profile</BLINK></A>";
+    }
     $modicon[]="<IMG SRC=\"../user/user.gif\" HEIGHT=16 WIDTH=16 ALT=\"Me\">";
     print_side_block("", $moddata, "", $modicon);