client/home: show top nav after all, improve looks

This commit is contained in:
rr-
2016-06-01 21:31:15 +02:00
parent 446f4d6611
commit fd2df3966d
6 changed files with 47 additions and 68 deletions

View File

@ -25,9 +25,6 @@ class HomeController {
.then(response => {
this._homeView.render({
canListPosts: api.hasPrivilege('posts:list'),
canListComments: api.hasPrivilege('comments:list'),
canListTags: api.hasPrivilege('tags:list'),
canListUsers: api.hasPrivilege('users:list'),
diskUsage: response.diskUsage,
postCount: response.postCount,
featuredPost: response.featuredPost,
@ -38,9 +35,6 @@ class HomeController {
response => {
this._homeView.render({
canListPosts: api.hasPrivilege('posts:list'),
canListComments: api.hasPrivilege('comments:list'),
canListTags: api.hasPrivilege('tags:list'),
canListUsers: api.hasPrivilege('users:list'),
});
events.notify(events.Error, response.description);
});