MDL-30414 block_private_files: convert button to inline link

This commit is contained in:
Charles Fulton 2014-08-15 11:14:23 -07:00
parent e609e6cf02
commit b1931bf279
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;
}