Commit 51fa305e authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1508300: Adding notice to PDF block config



About the danger of displaying big PDF files

behatnotneeded

Change-Id: I451c6daafc0d1fa537e4d3fdeb16d164be92ac0a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 5a911c57
......@@ -13,3 +13,4 @@ defined('INTERNAL') || die();
$string['title'] = 'PDF';
$string['description'] = 'A single PDF file from your files area';
$string['pdfwarning'] = 'Note: Displaying large PDF files can be browser resource intensive.';
......@@ -104,6 +104,11 @@ class PluginBlocktypePdf extends MaharaCoreBlocktype {
'legend' => get_string('file', 'artefact.file'),
'class' => 'last select-file with-formgroup',
'elements' => array(
'pdfwarning' => array(
'type' => 'html',
'value' => get_string('pdfwarning', 'blocktype.file/pdf'),
'class' => 'alert alert-info',
),
'artefactid' => $filebrowser
)
),
......
......@@ -89,6 +89,9 @@
position: relative;
padding: 20px 0;
border-bottom: 1px solid $list-group-border;
&.alert {
padding: 5px 10px;
}
&:last-child,
&.last {
border-bottom: 0;
......
......@@ -89,6 +89,9 @@
position: relative;
padding: 20px 0;
border-bottom: 1px solid $list-group-border;
&.alert {
padding: 5px 10px;
}
&:last-child,
&.last {
border-bottom: 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment