-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user dashboard showing starred boards.
- Loading branch information
Showing
8 changed files
with
99 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<%= if (len(boards) == 0) { %> | ||
<h3 class="d-inline-block">Welcome</h3> | ||
<p class="lead">There are no boards yet... | ||
<%= linkTo(newBoardsPath(), {class: "btn btn-primary btn-small"}) { %> | ||
Create New Board | ||
<% } %> | ||
</p> | ||
<% } else { %> | ||
|
||
<div class="py-4 mb-2"> | ||
<h3 class="d-inline-block"><%= greeting() %></h3> | ||
<div class="float-right"> | ||
<%= linkTo(newBoardsPath(), {class: "btn btn-primary", title: "Create new board"}) { %> | ||
<i class="icon-plus"></i> | ||
<% } %> | ||
</div> | ||
</div> | ||
|
||
<h3 class="d-inline-block"> | ||
<i class="icon-star text-primary"></i> | ||
Starred boards | ||
</h3> | ||
|
||
<table class="table table-hover table-noborders"> | ||
<tbody> | ||
<%= for (board) in boards { %> | ||
<%= if (isBoardStarred(board)) { %> | ||
<tr class="clickable" data-href="<%= boardPath({ board_id: board.ID }) %>"> | ||
<td> | ||
<%= board.Name %> | ||
</td> | ||
</tr> | ||
<% } %> | ||
<% } %> | ||
</tbody> | ||
</table> | ||
<% } %> | ||
|
||
|
||
<div class="text-center"> | ||
<%= paginator(pagination) %> | ||
</div> | ||
|
||
<h4 class="d-inline-block"> | ||
<%= linkTo(boardsPath(), { body: "Browse all boards..." }) %> | ||
</h4> |