mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Merge branch 'wip-MDL-30414-master' of https://github.com/mackensen/moodle
This commit is contained in:
commit
5a249b20c4
@ -61,9 +61,10 @@ class block_private_files extends block_base {
|
||||
$renderer = $this->page->get_renderer('block_private_files');
|
||||
$this->content->text = $renderer->private_files_tree();
|
||||
if (has_capability('moodle/user:manageownfiles', $this->context)) {
|
||||
$this->content->text .= $OUTPUT->single_button(new moodle_url('/user/files.php', array('returnurl'=>$PAGE->url->out())), get_string('myfilesmanage'), 'get');
|
||||
$this->content->footer = html_writer::link(
|
||||
new moodle_url('/user/files.php', array('returnurl' => $PAGE->url->out())),
|
||||
get_string('myfilesmanage') . '...');
|
||||
}
|
||||
$this->content->footer = '';
|
||||
|
||||
}
|
||||
return $this->content;
|
||||
|
@ -2,4 +2,9 @@
|
||||
.block_private_files .content table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.block_private_files .content .footer {
|
||||
padding: 10px 0 0;
|
||||
margin-top: .5em;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user