From: stronk7 Date: Tue, 31 Jul 2007 22:54:46 +0000 (+0000) Subject: Using new outcomes icon + whitespace cleaning. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b030054c1cc6e70d555224c24186cffe099871e1;p=moodle.git Using new outcomes icon + whitespace cleaning. --- diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index d7b5d6469a..b91a50b06b 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -37,7 +37,7 @@ class block_admin extends block_list { $course = $SITE; } - if (!has_capability('moodle/course:view', $context)) { // Just return + if (!has_capability('moodle/course:view', $context)) { // Just return return $this->content; } @@ -56,21 +56,21 @@ class block_admin extends block_list { } else { $this->content->items[]=''.get_string('turneditingon').''; } - + $this->content->items[]=''.get_string('settings').''; $this->content->icons[]=''; } - + /// Assign roles to the course - if (has_capability('moodle/role:assign', $context) && ($course->id!==SITEID)) { + if (has_capability('moodle/role:assign', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('assignroles', 'role').''; - $this->content->icons[]=''; - + $this->content->icons[]=''; + } /// View course grades (or just your own grades, same link) - if ((has_capability('moodle/grade:viewall', $context) or + if ((has_capability('moodle/grade:viewall', $context) or (has_capability('moodle/grade:view', $context) && $course->showgrades)) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('grades').''; $this->content->icons[]=''; @@ -79,19 +79,19 @@ class block_admin extends block_list { /// Course outcomes if (has_capability('moodle/course:update', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('outcomes', 'grades').''; - $this->content->icons[]=''; //TODO: add outcomes icon + $this->content->icons[]=''; } /// Manage scales if (has_capability('moodle/course:managescales', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('scales').''; - $this->content->icons[]=''; + $this->content->icons[]=''; } - + /// Manage metacourses if ($course->metacourse) { - if (has_capability('moodle/course:managemetacourse', $context)) { + if (has_capability('moodle/course:managemetacourse', $context)) { $strchildcourses = get_string('childcourses'); $this->content->items[]=''.$strchildcourses.''; $this->content->icons[]=''; @@ -113,35 +113,35 @@ class block_admin extends block_list { /// Backup this course - if (has_capability('moodle/site:backup', $context)&& ($course->id!==SITEID)) { + if (has_capability('moodle/site:backup', $context)&& ($course->id!==SITEID)) { $this->content->items[]=''.get_string('backup').''; $this->content->icons[]=''; } - + /// Restore to this course if (has_capability('moodle/site:restore', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('restore').''; $this->content->icons[]=''; } - + /// Import data from other courses if (has_capability('moodle/site:import', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('import').''; $this->content->icons[]=''; } - + /// Reset this course if (has_capability('moodle/course:reset', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('reset').''; $this->content->icons[]=''; } - + /// View course reports if (has_capability('moodle/site:viewreports', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('reports').''; $this->content->icons[]=''; } - + /// Manage questions if (has_capability('moodle/question:manage', $context) && ($course->id!==SITEID)) { $this->content->items[]=''.get_string('questions', 'quiz').'';