Added empty message to board list when there are no boards present.

Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
Ryan Fletcher
2018-08-21 14:35:03 -04:00
parent eb29baef4b
commit 9353e4852c
2 changed files with 11 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ $color-darkgrey: nc-darken($color-main-background, 32%);
/**
* General styles
*/
.center-text {
text-align: center;
}
button,
.button,
.app-deck .icon {

View File

@@ -24,7 +24,12 @@
</tr>
</thead>
<tbody>
<tr data-ng-repeat="b in boardservice.sorted track by b.id" ng-class="{deleted: b.deletedAt > 0}">
<tr ng-if="boardservice.sorted.length == 0">
<td class="center-text" colspan="4">
<?php p($l->t('There are no boards in this category to display')); ?>
</td>
</tr>
<tr ng-if="boardservice.sorted.length > 0" data-ng-repeat="b in boardservice.sorted track by b.id" ng-class="{deleted: b.deletedAt > 0}">
<td ng-click="gotoBoard(b)">
<div class="board-bullet" ng-style="{'background-color':'#'+b.color}"> </div>
</td>