More tidying up of notes appearance

This commit is contained in:
moodler 2007-08-31 04:52:24 +00:00
parent e0c9a62d54
commit 807188ebaa
2 changed files with 12 additions and 3 deletions

View File

@ -149,11 +149,21 @@ function note_get_state_names() {
function note_print($note, $detail = NOTES_SHOW_FULL) {
global $CFG, $USER;
$user = get_record('user','id',$note->userid);
if (!$user = get_record('user','id',$note->userid)) {
debugging("User $note->userid not found");
return;
}
if (!$author = get_record('user','id',$note->usermodified)) {
debugging("User $note->usermodified not found");
return;
}
$context = get_context_instance(CONTEXT_COURSE, $note->courseid);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
$authoring->name = fullname(get_record('user','id',$note->usermodified));
$authoring = new object;
$authoring->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$author->id.'&amp;course='.$note->courseid.'">'.fullname($author).'</a>';
$authoring->date = userdate($note->lastmodified);
echo '<div class="notepost '. $note->publishstate . 'notepost' .
($note->usermodified == $USER->id ? ' ownnotepost' : '') .
'" id="note-'. $note->id .'">';

View File

@ -2474,7 +2474,6 @@ body#message-send .notifysuccess {
}
.ownnotepost .info {
font-weight: bolder;
}
.notepost .header {