diff --git a/Bootstrap.Admin/Content/css/tasks.css b/Bootstrap.Admin/Content/css/tasks.css index 0dabd81f..04f5ff67 100644 --- a/Bootstrap.Admin/Content/css/tasks.css +++ b/Bootstrap.Admin/Content/css/tasks.css @@ -194,6 +194,27 @@ border-left: 3px solid #BEC3C7; } +.ui-sortable li.list-default { + border-left: 3px solid #BEC3C7; +} + +.ui-sortable li.list-Exception { + border-left: 3px solid red; +} + +.ui-sortable li.list-Message { + border-left: 3px solid #00ff00; +} + +.ui-sortable li.list-Task { + border-left: 3px solid #2083a0; +} + +.ui-sortable li.list-Notification { + border-left: 3px solid #b7d8e2; +} + + @media (max-width: 548px) { .tasks-widget .task-list li .task-title.notifi .task-value { right: 66px; diff --git a/Bootstrap.Admin/Scripts/Profiles.js b/Bootstrap.Admin/Scripts/Profiles.js index 2c6b23ee..2635d417 100644 --- a/Bootstrap.Admin/Scripts/Profiles.js +++ b/Bootstrap.Admin/Scripts/Profiles.js @@ -66,9 +66,45 @@ if (result) { result = $.parseJSON(result); if ($.isArray(result)) { - var html = '
  • {2}{0}{3}
  • '; + var html = '
  • {2}{0}{3}
  • '; var content = result.map(function (ele) { - return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value); + var key = ele.Key.split('-')[0]; + var css = 'list-default'; + switch (key) { + case "MenuHelper": + css = 'list-primary'; + break; + case "UserHelper": + css = 'list-success'; + break; + case "RoleHelper": + css = 'list-danger'; + break; + case "GroupHelper": + css = 'list-warning'; + break; + case "LogHelper": + css = 'list-info'; + break; + case "DictHelper": + css = 'list-inverse'; + break; + case "ExceptionHelper": + css = 'list-Exception'; + break; + case "MessageHelper": + css = 'list-Message'; + break; + case "TaskHelper": + css = 'list-Task'; + break; + case "NotificationHelper": + css = 'list-Notification'; + break; + default: + break; + } + return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, css); }).join(''); $('#sortable').html(content); $('.tooltips').tooltip();