1
0
Fork 0

added usermanagement view

This commit is contained in:
gschwab 2014-02-18 09:27:45 +01:00
parent cecb40147d
commit 5408e4b845
2 changed files with 15 additions and 3 deletions

View File

@ -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');
}
});
}());

View File

@ -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>