Repository: ranger
Updated Branches:
  refs/heads/master 3afe270e7 -> 76bbcdafa


RANGER-2267: Add a icon to differentiate the status of the service

Signed-off-by: peng.jianhua <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/76bbcdaf
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/76bbcdaf
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/76bbcdaf

Branch: refs/heads/master
Commit: 76bbcdafa1f69b5982dc9cf83d6aac06bfe7dae1
Parents: 3afe270
Author: zhangqiang2 <[email protected]>
Authored: Wed Oct 31 14:22:31 2018 +0800
Committer: peng.jianhua <[email protected]>
Committed: Tue Nov 13 14:46:03 2018 +0800

----------------------------------------------------------------------
 security-admin/src/main/webapp/templates/helpers/XAHelpers.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/76bbcdaf/security-admin/src/main/webapp/templates/helpers/XAHelpers.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/templates/helpers/XAHelpers.js 
b/security-admin/src/main/webapp/templates/helpers/XAHelpers.js
index 27de701..9e2c02b 100644
--- a/security-admin/src/main/webapp/templates/helpers/XAHelpers.js
+++ b/security-admin/src/main/webapp/templates/helpers/XAHelpers.js
@@ -521,8 +521,11 @@
                                                 <a href="javascript:void(0);" 
data-name="viewService" data-id="'+serv.id+'" class="btn btn-mini" 
title="View"><i class="icon-eye-open "></i></a>\
                                            </div>'
                                }
-                               tr += '<tr><td><div>\
-                                               <a class="pull-left 
serviceNameEllipsis" data-id="'+serv.id+'" 
href="#!/service/'+serv.id+'/policies/'+policyType+'" 
title="'+_.escape(serv.attributes.name)+'">'+_.escape(serv.attributes.name)+'</a>'+serviceOperationDiv+'\
+                               tr += '<tr><td><div>';
+                               if (!serv.get('isEnabled')) {
+                                       tr += '<i class="icon-ban-circle 
text-color-red pull-left icon-large"></i>';
+                               }
+                               tr += '<a class="pull-left serviceNameEllipsis" 
data-id="'+serv.id+'" href="#!/service/'+serv.id+'/policies/'+policyType+'" 
title="'+_.escape(serv.attributes.name)+'">'+_.escape(serv.attributes.name)+'</a>'+serviceOperationDiv+'\
                                          </div></td></tr>';
                        });
                }

Reply via email to