Skip to content

Commit

Permalink
More tidying up of notes appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 31, 2007
1 parent e0c9a62 commit 807188e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 12 additions & 2 deletions notes/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .'">';
Expand Down
1 change: 0 additions & 1 deletion theme/standard/styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,6 @@ body#message-send .notifysuccess {
}

.ownnotepost .info {
font-weight: bolder;
}

.notepost .header {
Expand Down

0 comments on commit 807188e

Please sign in to comment.