MDL-49650 Templates: Move templates out of invalid sub directory.
Also add comments so they render in the template library.
This commit is contained in:
@@ -2932,19 +2932,19 @@ EOD;
|
||||
$templatename = '';
|
||||
switch($data->type) {
|
||||
case \core\output\notification::NOTIFY_MESSAGE:
|
||||
$templatename = 'core/output/notification_message';
|
||||
$templatename = 'core/notification_message';
|
||||
break;
|
||||
case \core\output\notification::NOTIFY_SUCCESS:
|
||||
$templatename = 'core/output/notification_success';
|
||||
$templatename = 'core/notification_success';
|
||||
break;
|
||||
case \core\output\notification::NOTIFY_PROBLEM:
|
||||
$templatename = 'core/output/notification_problem';
|
||||
$templatename = 'core/notification_problem';
|
||||
break;
|
||||
case \core\output\notification::NOTIFY_REDIRECT:
|
||||
$templatename = 'core/output/notification_redirect';
|
||||
$templatename = 'core/notification_redirect';
|
||||
break;
|
||||
default:
|
||||
$templatename = 'core/output/notification_message';
|
||||
$templatename = 'core/notification_message';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+4
-1
@@ -27,5 +27,8 @@
|
||||
|
||||
Context variables required for this template:
|
||||
* message A cleaned string (use clean_text()) to display.
|
||||
|
||||
Example context (json):
|
||||
{ "message": "Your pants are on fire!" }
|
||||
}}
|
||||
<div class="alert alert-info">{{{message}}}</div>
|
||||
<div class="alert alert-info">{{{message}}}</div>
|
||||
+4
-1
@@ -27,5 +27,8 @@
|
||||
|
||||
Context variables required for this template:
|
||||
* message A cleaned string (use clean_text()) to display.
|
||||
|
||||
Example context (json):
|
||||
{ "message": "Your pants are on fire!" }
|
||||
}}
|
||||
<div class="alert alert-error">{{{message}}}</div>
|
||||
<div class="alert alert-error">{{{message}}}</div>
|
||||
+4
-1
@@ -27,5 +27,8 @@
|
||||
|
||||
Context variables required for this template:
|
||||
* message A cleaned string (use clean_text()) to display.
|
||||
|
||||
Example context (json):
|
||||
{ "message": "Your pants are on fire!" }
|
||||
}}
|
||||
<div class="alert alert-block alert-info">{{{message}}}</div>
|
||||
<div class="alert alert-block alert-info">{{{message}}}</div>
|
||||
+4
-1
@@ -27,5 +27,8 @@
|
||||
|
||||
Context variables required for this template:
|
||||
* message A cleaned string (use clean_text()) to display.
|
||||
|
||||
Example context (json):
|
||||
{ "message": "Your pants are on fire!" }
|
||||
}}
|
||||
<div class="alert alert-success">{{{message}}}</div>
|
||||
<div class="alert alert-success">{{{message}}}</div>
|
||||
Reference in New Issue
Block a user