summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-08-03 09:24:40 +0900
committernztqa <nztqa@users.noreply.github.com>2017-08-03 09:24:40 +0900
commite407eb9a8b91d1100315f2fcab2cf8d184957929 (patch)
tree197510f28ad8ef829abc0f085a07dad2086eb943 /config
parent3085230b13e55542a4d95e9357366688b3e2fd1a (diff)
downloadwekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.tar.gz
wekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.tar.bz2
wekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.zip
Add display wekan version number and runtime environment
Diffstat (limited to 'config')
-rw-r--r--config/router.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/router.js b/config/router.js
index ea85c7e6..7f657820 100644
--- a/config/router.js
+++ b/config/router.js
@@ -120,6 +120,26 @@ FlowRouter.route('/setting', {
},
});
+FlowRouter.route('/information', {
+ name: 'information',
+ triggersEnter: [
+ AccountsTemplates.ensureSignedIn,
+ () => {
+ Session.set('currentBoard', null);
+ Session.set('currentCard', null);
+
+ Filter.reset();
+ EscapeActions.executeAll();
+ },
+ ],
+ action() {
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'settingHeaderBar',
+ content: 'information',
+ });
+ },
+});
+
FlowRouter.notFound = {
action() {
BlazeLayout.render('defaultLayout', { content: 'notFound' });