diff --git a/resources/assets/js/global.js b/resources/assets/js/global.js index 57d62728b..44562abd0 100644 --- a/resources/assets/js/global.js +++ b/resources/assets/js/global.js @@ -112,7 +112,7 @@ $(function () { // Common jQuery actions $('[data-action="expand-entity-list-details"]').click(function() { - $('.entity-list.compact').find('p').slideToggle(240); + $('.entity-list.compact').find('p').not('.empty-text').slideToggle(240); }); diff --git a/resources/assets/sass/_lists.scss b/resources/assets/sass/_lists.scss index e97cc647a..08f00677e 100644 --- a/resources/assets/sass/_lists.scss +++ b/resources/assets/sass/_lists.scss @@ -338,6 +338,10 @@ ul.pagination { padding-top: $-xs; margin: 0; } + > p.empty-text { + display: block; + font-size: $fs-m; + } hr { margin: 0; } diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index e0aa08568..88319738e 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -34,18 +34,30 @@ @else
New activity will show up here.
+No activity to show
@endif \ No newline at end of file diff --git a/resources/views/partials/entity-list.blade.php b/resources/views/partials/entity-list.blade.php index a52e5f013..412d3be8f 100644 --- a/resources/views/partials/entity-list.blade.php +++ b/resources/views/partials/entity-list.blade.php @@ -16,8 +16,8 @@ @endforeach @else -- No items available +
+ {{ $emptyText or 'No items available' }}
@endif \ No newline at end of file