From: moodler Date: Wed, 6 Sep 2006 02:16:48 +0000 (+0000) Subject: A temporary icon for roles (needs work!) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6d0bd10c0af82674280c634663deb936c2dd9afc;p=moodle.git A temporary icon for roles (needs work!) --- diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 7a06f3c51d..26d944ac77 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -135,7 +135,7 @@ class block_admin extends block_list { /// always need a role assignment link if (has_capability('moodle/role:assign', $context)) { $this->content->items[]=''.get_string('assignroles', 'role').''; - $this->content->icons[]=''; + $this->content->icons[]=''; } if ($course->metacourse) { diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 1926f27e7f..d848154904 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -325,6 +325,7 @@ class block_base { $this->str->hide = get_string('hide'); $this->str->show = get_string('show'); $this->str->configure = get_string('configuration'); + $this->str->assignroles = get_string('assignroles', 'role'); } $movebuttons = '
'; @@ -348,8 +349,8 @@ class block_base { $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey)); // place holder for roles button - $movebuttons .= '' . - ''.get_string('roles').''; + $movebuttons .= '' . + ''.$this->str->assignroles.''; $movebuttons .= '' . ''.$title.''; diff --git a/pix/i/roles.gif b/pix/i/roles.gif new file mode 100755 index 0000000000..f6ac44d7f7 Binary files /dev/null and b/pix/i/roles.gif differ