From 6d0bd10c0af82674280c634663deb936c2dd9afc Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 6 Sep 2006 02:16:48 +0000 Subject: [PATCH] A temporary icon for roles (needs work!) --- blocks/admin/block_admin.php | 2 +- blocks/moodleblock.class.php | 5 +++-- pix/i/roles.gif | Bin 0 -> 139 bytes 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 pix/i/roles.gif 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 0000000000000000000000000000000000000000..f6ac44d7f75e1d4749cd05b222201a089ac274eb GIT binary patch literal 139 zcmV;60CfLHNk%w1VGsZi0HOc@_n~rfKLlno0GVbp%$a8Y%$WcH0RR90A^8LW000L7 zEC2ui01yBW0009}NV;S9@G;fm3E@yvNPQRp1Y7q7qDU&8=b)l7F3bzaD!pB4&YUV= t4b(HN3_G4-Ia4f`#8gHH9Az}L&n4h^48C7M7czc6ErhWJohCdI06Y6IFz5gP literal 0 HcmV?d00001 -- 2.39.5