Merge branch 'wip-MDL-30414-master' of https://github.com/mackensen/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2014-09-03 01:08:17 +02:00
commit 5a249b20c4
2 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}