Skip to content

Commit

Permalink
Cleaned up notes some more
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 31, 2007
1 parent 7e7f6fd commit e0c9a62
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
9 changes: 5 additions & 4 deletions notes/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@
$strnotes = get_string('addnewnote', 'notes');

/// output HTML
$crumbs = array();
$crumbs[] = array('name' => fullname($user), 'link' => $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $user->id, 'type' => 'misc');
$crumbs[] = array('name' => $strnotes, 'link' => '', 'type' => 'activity');
$nav = array();
$nav[] = array('name' => fullname($user), 'link' => $CFG->wwwroot . '/user/view.php?id=' . $user->id. '&course=' . $course->id, 'type' => 'misc');
$nav[] = array('name' => get_string('notes', 'notes'), 'link' => $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $user->id, 'type' => 'misc');
$nav[] = array('name' => $strnotes, 'link' => '', 'type' => 'activity');

print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($crumbs));
print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($nav));

print_heading(fullname($user));

Expand Down
9 changes: 5 additions & 4 deletions notes/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
$strnotes = get_string('editnote', 'notes');

/// output HTML
$crumbs = array();
$crumbs[] = array('name' => fullname($user), 'link' => $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $user->id, 'type' => 'misc');
$crumbs[] = array('name' => $strnotes, 'link' => '', 'type' => 'activity');
$nav = array();
$nav[] = array('name' => fullname($user), 'link' => $CFG->wwwroot . '/user/view.php?id=' . $user->id. '&course=' . $course->id, 'type' => 'misc');
$nav[] = array('name' => get_string('notes', 'notes'), 'link' => $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $user->id, 'type' => 'misc');
$nav[] = array('name' => $strnotes, 'link' => '', 'type' => 'activity');

print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($crumbs));
print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($nav));

print_heading(fullname($user));

Expand Down
4 changes: 3 additions & 1 deletion notes/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
/// output HTML

$strnotes = get_string('notes', 'notes');
$nav = array(array('name' => $strnotes, 'link' => '', 'type' => 'activity'));
$nav = array();
$nav[] = array('name' => fullname($user), 'link' => $CFG->wwwroot . '/user/view.php?id=' . $user->id. '&course=' . $course->id, 'type' => 'misc');
$nav[] = array('name' => $strnotes, 'link' => '', 'type' => 'misc');

print_header($course->shortname . ': ' . $strnotes, $course->fullname, build_navigation($nav));

Expand Down

0 comments on commit e0c9a62

Please sign in to comment.