mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-40975 ActionMenu: Adjust how actionmenu is displayed for course management
This commit is contained in:
parent
047a8800f4
commit
f5b33487fc
@ -620,8 +620,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
||||
new action_menu_link_secondary($shortnameurl, null, get_string('resortbyshortname')),
|
||||
new action_menu_link_secondary($idnumberurl, null, get_string('resortbyidnumber'))
|
||||
));
|
||||
$menu->actiontext = get_string('resortcourses');
|
||||
$menu->actionicon = new pix_icon('t/contextmenu', ' ', 'moodle', array('class' => 'iconsmall', 'title' => ''));
|
||||
$menu->set_menu_trigger(get_string('resortcourses'));
|
||||
$actions[] = $this->render($menu);
|
||||
}
|
||||
$strall = get_string('all');
|
||||
@ -637,7 +636,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
||||
$perpage = $strall;
|
||||
}
|
||||
$menu->attributes['class'] .= ' courses-per-page';
|
||||
$menu->actiontext = get_string('perpagea', 'moodle', $perpage);
|
||||
$menu->set_menu_trigger(get_string('perpagea', 'moodle', $perpage));
|
||||
$actions[] = $this->render($menu);
|
||||
return html_writer::div(join(' | ', $actions), 'listing-actions course-listing-actions');
|
||||
}
|
||||
@ -931,7 +930,7 @@ class core_course_management_renderer extends plugin_renderer_base {
|
||||
$menu->add(new action_menu_link_secondary($modeurl, null, $modestr, $attributes));
|
||||
}
|
||||
|
||||
$menu->actiontext = get_string('viewing', 'moodle', $selected);
|
||||
$menu->set_menu_trigger(get_string('viewing', 'moodle', $selected));
|
||||
|
||||
$html = html_writer::start_div('view-mode-selector vms');
|
||||
$html .= $this->render($menu);
|
||||
|
@ -368,6 +368,17 @@ input.titleeditor { vertical-align: text-bottom; }
|
||||
#course-category-listings .listing-actions .moodle-actionmenu:not([data-enhanced]) > .menubar a {color:inherit;}
|
||||
#course-category-listings .listing-actions .moodle-actionmenu:not([data-enhanced]) > .menubar a > img {display:none;}
|
||||
|
||||
.jsenabled #course-category-listings .moodle-actionmenu[data-enhance] .toggle-display img {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.jsenabled #course-category-listings .moodle-actionmenu[data-enhance] .toggle-display.textmenu {
|
||||
padding-right: 4px;
|
||||
}
|
||||
.jsenabled #course-category-listings .moodle-actionmenu[data-enhance] .toggle-display.textmenu .caret {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#course-category-listings .item-actions {margin-right:1em;display:inline-block;display:initial;}
|
||||
#course-category-listings .item-actions img {margin: 0 4px;vertical-align:inherit;}
|
||||
#course-category-listings .item-actions .menu img {max-width:none;width:12px;}
|
||||
|
@ -806,6 +806,22 @@ span.editinstructions {
|
||||
.moodle-actionmenu {
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
.moodle-actionmenu[data-enhance] {
|
||||
.toggle-display {
|
||||
img {
|
||||
width: auto;
|
||||
}
|
||||
&.textmenu {
|
||||
padding-right: 4px;
|
||||
|
||||
.caret {
|
||||
margin-top: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.listing-actions {
|
||||
text-align:center;
|
||||
padding:0.4rem 0.3rem 0.3rem;
|
||||
|
Loading…
x
Reference in New Issue
Block a user