|
@@ -1,5 +1,12 @@
|
|
|
-<span style="white-space:nowrap; color:#2f2f2f; display:inline-block; min-height:24px; border-right:1px solid #cdcdcd; padding:5px 10px 5px 6px; ">
|
|
|
+{% set style = '' %}
|
|
|
+{% if status is defined %}
|
|
|
+ {% if 'error' == status %}
|
|
|
+ {% set style = 'background-color: #f66;' %}
|
|
|
+ {% elseif 'warning' == status %}
|
|
|
+ {% set style = 'background-color: #fa2;' %}
|
|
|
+ {% endif %}
|
|
|
+{% endif %}
|
|
|
+<span style="{{ style }}white-space:nowrap; color:#2f2f2f; display:inline-block; min-height:24px; border-right:1px solid #cdcdcd; padding:5px 10px 5px 6px; ">
|
|
|
{% if icon is defined %}{{ icon }}{% endif %}
|
|
|
{% if text is defined %}{{ text }}{% endif %}
|
|
|
-</span>
|
|
|
-
|
|
|
+</span>
|