From: moodler Date: Mon, 25 Feb 2008 05:04:46 +0000 (+0000) Subject: Merged MDL-13640 to move "Manage tags" link X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=03ce38cd2b00d3ed4f6dae6b812f62e62ef68b1b;p=moodle.git Merged MDL-13640 to move "Manage tags" link --- diff --git a/tag/index.php b/tag/index.php index f538442f09..0119472c0e 100644 --- a/tag/index.php +++ b/tag/index.php @@ -36,8 +36,15 @@ if (($edit != -1) and $PAGE->user_allowed_editing()) { $USER->editing = $edit; } +$systemcontext = get_context_instance(CONTEXT_SYSTEM); + $PAGE->print_header(); +// Manage all tags links +if (has_capability('moodle/tag:manage', $systemcontext)) { + echo '' ; +} + echo ''; echo ''; @@ -57,7 +64,6 @@ echo '
'; $tagname = tag_display_name($tag); -$systemcontext = get_context_instance(CONTEXT_SYSTEM); if ($tag->flag > 0 && has_capability('moodle/tag:manage', $systemcontext)) { $tagname = '' . rawurlencode($tagname) . ''; } diff --git a/tag/search.php b/tag/search.php index ddb5bd0fe6..78ac430731 100644 --- a/tag/search.php +++ b/tag/search.php @@ -25,7 +25,10 @@ if ( has_capability('moodle/tag:manage',$systemcontext) ) { $manage_link = "wwwroot}/tag/manage.php\">" . get_string('managetags', 'tag') . "" ; } -print_header_simple(get_string('tags', 'tag'), '', $navigation, '', '', '', $manage_link); +print_header_simple(get_string('tags', 'tag'), '', $navigation); + +echo '' ; + print_heading(get_string('searchtags', 'tag'), '', 2); tag_print_search_box(); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 808044dad8..8b74058220 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2847,6 +2847,11 @@ div#tag-user-table { display:block; } +body.tag .managelink { + text-align:right; + padding:10px; +} + /* small css hack for firefox*/ div#tag-user-table:after{ content:".";