angular.module('com.likalo.ui')
 .factory('uiDialog', ['ngDialog', function(ngDialog) {
  return {
   alert: function(title, message, type){
    var infoClass;
    title = title || 'Alert';
    message = message || '';
    type = type || 'alert';
    infoClass = ' UI-info-block--' + type;
    return ngDialog.open({
        plain: true,
        closeByNavigation: true,
        className: 'UI-modal UI-modal--alert',
        template: '<aside class="UI-info-block' + infoClass + '"><svg class="UI-info-block--decorator"><rect class="UI-decorator--base" height="100%"></rect><use xmlns:xlink="http://www.w3.org/1999/xlink" class="UI-decorator--icon" ui-icon-xlink-href="alert" xlink:href="#icon--alert"></use></svg><p class="UI-info-block--content"><strong>' + title + '</strong><br/>' + message + '</p></aside>'
       });
   },
   modal: function(template, controller, more){
    return ngDialog.openConfirm(angular.extend({
        showClose: false,
        closeByEscape: false,
        closeByDocument: false,
        className: 'UI-modal UI-modal--dialog',
        template: template,
        controller: controller
       }, more));
   },
   view: function(template, controller, more){
    return ngDialog.open(angular.extend({
        showClose: false,
        closeByEscape: true,
        closeByDocument: true,
        closeByNavigation: true,
        className: 'UI-modal UI-modal--view',
        template: template,
        controller: controller
       }, more));
   }
  };
 }]);

@@ -129,14 +129,8 @@
 sage
-, type
 )%7B%0A 
@@ -210,79 +210,8 @@
 '';%0A
-    type = type %7C%7C 'alert';%0A    infoClass = ' UI-info-block--' + type;%0A
     
@@ -384,25 +384,15 @@
 lock
-' + infoClass + '
+--alert
 %22%3E%3Cs

All the alerts are red