mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-30414 block_private_files: convert button to inline link
This commit is contained in:
parent
e609e6cf02
commit
b1931bf279
@ -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