mirror of https://gitee.com/bigwinds/arangodb
added usermanagement view
This commit is contained in:
parent
cecb40147d
commit
5408e4b845
|
@ -30,7 +30,8 @@
|
|||
"graph" : "graph",
|
||||
"graphManagement" : "graphManagement",
|
||||
"graphManagement/add" : "graphAddNew",
|
||||
"graphManagement/delete/:name" : "graphDelete"
|
||||
"graphManagement/delete/:name" : "graphDelete",
|
||||
"userManagement" : "userManagement"
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
|
@ -465,7 +466,18 @@
|
|||
if (newWidth !== oldWidth) {
|
||||
this.graphView.handleResize(newWidth);
|
||||
}
|
||||
},
|
||||
|
||||
userManagement: function() {
|
||||
if (!this.userManagementView) {
|
||||
this.userManagementView = new window.userManagementView({
|
||||
collection: window.activeUser
|
||||
});
|
||||
}
|
||||
this.userManagementView.render();
|
||||
this.naviView.selectMenuItem('user-menu');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}());
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<li class="dropdown">
|
||||
<li class="dropdown user-menu">
|
||||
<a href="#" class="tab" id="user" >
|
||||
<img src="<%=img%>" id="userimage" height="23" width="23" /> <b class="caret"></b>
|
||||
</a>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<a id="user" class="tab" href="#user">User profile</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a id="user" class="tab" href="#user">User management</a>
|
||||
<a id="userManagement" class="internalLink" href="#userManagement">User management</a>
|
||||
</li>
|
||||
<li class="dropdown-item">
|
||||
<a id="user" class="tab" href="#user">Logout</a>
|
||||
|
|
Loading…
Reference in New Issue