mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Open a modal (or a new page) based on context
This feature is also sometime named the Pinterest-style route, which is further explained in this react-router example:
cf0419f70e/examples/pinterest
This commit is contained in:
parent
95dcd8a146
commit
31c4aa01bd
6 changed files with 57 additions and 24 deletions
|
|
@ -5,9 +5,7 @@ Template.header.helpers({
|
|||
},
|
||||
|
||||
wrappedHeader: function() {
|
||||
var unwrapedRoutes = ['board', 'card'];
|
||||
var currentRouteName = FlowRouter.getRouteName();
|
||||
return unwrapedRoutes.indexOf(currentRouteName) === -1;
|
||||
return ! Session.get('currentBoard');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
4
client/components/main/keyboardShortcuts.tpl.jade
Normal file
4
client/components/main/keyboardShortcuts.tpl.jade
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.wrapper
|
||||
h2
|
||||
i.fa.fa-keyboard-o
|
||||
| Keyboard shortcuts
|
||||
Loading…
Add table
Add a link
Reference in a new issue