client/help: split search help into sections

This commit is contained in:
rr-
2016-04-17 00:03:45 +02:00
parent 9247e11596
commit 925bfcecc5
10 changed files with 521 additions and 483 deletions

View File

@ -14,12 +14,18 @@ class HelpController {
page(
'/help/:section',
(ctx, next) => { this.showHelpRoute(ctx.params.section); });
page(
'/help/:section/:subsection',
(ctx, next) => {
this.showHelpRoute(ctx.params.section, ctx.params.subsection);
});
}
showHelpRoute(section) {
showHelpRoute(section, subsection) {
topNavController.activate('help');
this.helpView.render({
section: section,
subsection: subsection,
});
}
}