client/general: add title to every page

This commit is contained in:
rr-
2016-07-13 21:50:07 +02:00
parent 394e51ed21
commit 2a39ec165d
18 changed files with 22 additions and 0 deletions

View File

@ -11,6 +11,7 @@ const EmptyView = require('../views/empty_view.js');
class UserController {
constructor(ctx, section) {
topNavigation.setTitle('User ' + ctx.parameters.name);
User.get(ctx.parameters.name).then(user => {
const isLoggedIn = api.isLoggedIn(user);
const infix = isLoggedIn ? 'self' : 'any';