mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
More tidying up of notes appearance
This commit is contained in:
parent
e0c9a62d54
commit
807188ebaa
@ -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.'&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 .'">';
|
||||
|
@ -2474,7 +2474,6 @@ body#message-send .notifysuccess {
|
||||
}
|
||||
|
||||
.ownnotepost .info {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.notepost .header {
|
||||
|
Loading…
x
Reference in New Issue
Block a user