mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
template(name="header")
|
|
#header(class=currentBoard.colorClass)
|
|
//-
|
|
If the user is connected we display a small "quick-access" top bar that
|
|
list all starred boards with a link to go there. This is inspired by the
|
|
Reddit "subreddit" bar.
|
|
The first link goes to the boards page.
|
|
unless isSandstorm
|
|
if currentUser
|
|
#header-quick-access
|
|
ul
|
|
li
|
|
+linkTo(route="Boards")
|
|
span.fa.fa-home
|
|
| All boards
|
|
each currentUser.starredBoards
|
|
li.separator -
|
|
li(class="{{#if $.Session.equals 'currentBoard' _id}}current{{/if}}")
|
|
+linkTo(route="Board" data=this)
|
|
= title
|
|
else
|
|
li.current Star a board to add a shortcut in this bar.
|
|
|
|
li
|
|
a.js-create-board
|
|
i.fa.fa-plus(title="Create a new board")
|
|
|
|
+headerUserBar
|
|
|
|
//-
|
|
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
|
|
if $.Session.get 'currentBoard'
|
|
+headerBoard
|
|
else
|
|
+headerTitle
|
|
|
|
template(name="headerTitle")
|
|
h1 LibreBoard
|
|
|