You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by se...@apache.org on 2015/07/08 16:44:46 UTC

incubator-ignite git commit: # IGNITE-843 Disable action 'remove' for self.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 a2da2b61a -> 928dc7780


# IGNITE-843 Disable action 'remove' for self.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/928dc778
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/928dc778
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/928dc778

Branch: refs/heads/ignite-843
Commit: 928dc7780a042f8b0bf6ab283eb1180ec53c3f0c
Parents: a2da2b6
Author: sevdokimov <se...@gridgain.com>
Authored: Wed Jul 8 17:44:34 2015 +0300
Committer: sevdokimov <se...@gridgain.com>
Committed: Wed Jul 8 17:44:34 2015 +0300

----------------------------------------------------------------------
 .../nodejs/views/admin/userList_content.html            | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/928dc778/modules/web-control-center/nodejs/views/admin/userList_content.html
----------------------------------------------------------------------
diff --git a/modules/web-control-center/nodejs/views/admin/userList_content.html b/modules/web-control-center/nodejs/views/admin/userList_content.html
index e8a81f2..47b203b 100644
--- a/modules/web-control-center/nodejs/views/admin/userList_content.html
+++ b/modules/web-control-center/nodejs/views/admin/userList_content.html
@@ -21,7 +21,7 @@
                     <th st-sort="email">Email</th>
                     <th st-sort="lastLogin">Last login</th>
                     <th st-sort="lastLogin">Admin</th>
-                    <th>Actions</th>
+                    <th colspan="2">Actions</th>
                 </tr>
                 </thead>
                 <tbody>
@@ -35,12 +35,14 @@
                         <input type="checkbox" ng-disabled="user.adminChanging" ng-model="user.admin" 
                                ng-change="toggleAdmin(user)">
                     </td>
-                    <td>
-                        <a href ng-click="removeUser(user)" title="Remove user">
+                    <td width="1%">
+                        <a href ng-click="removeUser(user)" ng-show="user._id != loggedInUser._id" title="Remove user">
                             <span class="glyphicon glyphicon-remove" style="color: red"></span>
                         </a>
-                        
-                        <a ng-href="become?userId={{user._id}}" title="View user's configurations">
+                    </td>
+                    <td width="1%">
+                        <a ng-href="become?userId={{user._id}}" ng-show="user._id != loggedInUser._id"
+                           title="View user's configurations">
                             <span class="glyphicon glyphicon-eye-open"></span>
                         </a>
                     </td>