UI: Add link to keyboard shortcuts

This commit is contained in:
Alexander Sulfrian 2016-04-13 16:21:45 +02:00
parent 14e2b3c15f
commit c9e24ade24
4 changed files with 37 additions and 10 deletions

View file

@ -9,6 +9,7 @@ This release adds the following new features:
* Add shortcuts to move cards to the top or the bottom of a list; * Add shortcuts to move cards to the top or the bottom of a list;
* A new log-in button on the public board view to sign in, even if the board * A new log-in button on the public board view to sign in, even if the board
is published; is published;
* New link to the keyboard shortcuts in the board sidebar;
and fixes the following bugs: and fixes the following bugs:

View file

@ -3,14 +3,19 @@ template(name="sidebar")
a.sidebar-tongue.js-toggle-sidebar( a.sidebar-tongue.js-toggle-sidebar(
class="{{#if isTongueHidden}}is-hidden{{/if}}") class="{{#if isTongueHidden}}is-hidden{{/if}}")
i.fa.fa-angle-left i.fa.fa-angle-left
.sidebar-content.js-board-sidebar-content.js-perfect-scrollbar .sidebar-shadow
a.hide-btn.js-hide-sidebar .sidebar-content.sidebar-shortcuts
i.fa.fa-angle-right a.board-header-btn.js-shortcuts
unless isDefaultView i.fa.fa-keyboard-o
h2 span {{_ 'keyboard-shortcuts' }}
a.fa.fa-chevron-left.js-back-home .sidebar-content.js-board-sidebar-content.js-perfect-scrollbar
= getViewTitle a.hide-btn.js-hide-sidebar
+Template.dynamic(template=getViewTemplate) i.fa.fa-angle-right
unless isDefaultView
h2
a.fa.fa-chevron-left.js-back-home
= getViewTitle
+Template.dynamic(template=getViewTemplate)
template(name='homeSidebar') template(name='homeSidebar')
+membersWidget +membersWidget

View file

@ -94,6 +94,9 @@ BlazeComponent.extendComponent({
'click .js-hide-sidebar': this.hide, 'click .js-hide-sidebar': this.hide,
'click .js-toggle-sidebar': this.toggle, 'click .js-toggle-sidebar': this.toggle,
'click .js-back-home': this.setView, 'click .js-back-home': this.setView,
'click .js-shortcuts'() {
FlowRouter.go('shortcuts');
},
}]; }];
}, },
}).register('sidebar'); }).register('sidebar');

View file

@ -6,11 +6,19 @@
bottom: 0 bottom: 0
right: 0 right: 0
.sidebar-content .sidebar-shadow
padding: 12px position: absolute
top: 0
bottom: 0
right: 0
left: 0
background: darken(white, 3%) background: darken(white, 3%)
box-shadow: -10px 0px 5px -10px darken(white, 30%) box-shadow: -10px 0px 5px -10px darken(white, 30%)
z-index: 10 z-index: 10
.sidebar-content
padding: 12px
margin-bottom: 1.6em
position: absolute position: absolute
top: 0 top: 0
bottom: 0 bottom: 0
@ -72,6 +80,16 @@
i.fa i.fa
margin-right: 10px margin-right: 10px
.sidebar-shortcuts
margin: 0
padding: 0
top: auto
text-align: center
font-size: 0.8em
line-height: 1.6em
vertical-align: middle
color: darken(white, 40%)
.board-sidebar .board-sidebar
width: 248px width: 248px
right: -@width right: -@width