Implement board archive and restoration

This commit is contained in:
Maxime Quandalle 2015-08-23 11:09:48 +02:00
parent 9faaf07e02
commit 48ac8b026f
32 changed files with 138 additions and 42 deletions

View file

@ -31,7 +31,7 @@ template(name="header")
The main bar is a colorful bar that provide all the meta-data for the
current page. This bar is contextual based.
If the user is not connected we display "sign in" and "log in" buttons.
#header-main-bar
#header-main-bar(class="{{#if wrappedHeader}}wrapper{{/if}}")
if $.Session.get 'currentBoard'
+headerBoard
else
@ -39,3 +39,7 @@ template(name="header")
template(name="headerTitle")
h1 LibreBoard
.board-header-btns.right
a.board-header-btn.js-open-archived-board
i.fa.fa-archive
span Archives

View file

@ -2,6 +2,12 @@ Template.header.helpers({
// Reactively set the color of the page from the color of the current board.
headerTemplate: function() {
return 'headerBoard';
},
wrappedHeader: function() {
var unwrapedRoutes = ['board', 'card'];
var currentRouteName = FlowRouter.getRouteName();
return unwrapedRoutes.indexOf(currentRouteName) === -1;
}
});

View file

@ -106,6 +106,8 @@
margin: 0 10px
+ span
display: inline-block
margin-top: 1px
margin-right: 10px
.board-header-btn-close

View file

@ -42,6 +42,7 @@ body
width: 660px
min-height: 160px
margin: 42px auto
padding: 12px
border-radius: 4px
background: darken(white, 13%)
z-index: 110
@ -49,7 +50,6 @@ body
.modal-close-btn
display: block
float: right
margin: 12px
font-size: 24px
h1
@ -206,6 +206,10 @@ dd
margin-bottom: 0
padding-bottom: 0
.wrapper
max-width: 1200px
margin: 0 auto
.relative
position: relative