<ul class="component-viewer-popup-list">
{{#each tests}}
<li class="component-viewer-popup-test" title="{{name}}">
- <i class="component-viewer-popup-test-status {{alertIconClass status}}"></i>
+ <i class="component-viewer-popup-test-status {{testStatusIconClass status}}"></i>
<span class="component-viewer-popup-test-name">
<a class="component-viewer-popup-test-file link-action" title="{{name}}"
data-key="{{../file.key}}" data-method="{{name}}">
);
});
+ Handlebars.registerHelper('testStatusIconClass', function(status) {
+ return new Handlebars.SafeString('' +
+ 'icon-test-status-' + status.toLowerCase()
+ );
+ });
+
Handlebars.registerHelper('alertIconClass', function(alert) {
return new Handlebars.SafeString(
'icon-alert-' + alert.toLowerCase()
font-size: @iconFontSize;
}
.icon-test-status-failure:before {
+ content: "\f000";
+ color: @orange;
+ font-size: @iconFontSize;
+}
+.icon-test-status-error:before {
content: "\f057";
color: @red;
font-size: @iconFontSize;