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:
Damyon Wiese
2015-04-09 13:17:59 +08:00
parent 274d79c9d5
commit 9ee83b0d30
5 changed files with 21 additions and 9 deletions
+5 -5
View File
@@ -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;
}
@@ -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>
@@ -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>
@@ -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>
@@ -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>