mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-25 14:42:44 +03:00
Made list default messages a little nicer
This commit is contained in:
parent
b0a63ba0cc
commit
c25ef18900
@ -112,7 +112,7 @@ $(function () {
|
|||||||
|
|
||||||
// Common jQuery actions
|
// Common jQuery actions
|
||||||
$('[data-action="expand-entity-list-details"]').click(function() {
|
$('[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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -338,6 +338,10 @@ ul.pagination {
|
|||||||
padding-top: $-xs;
|
padding-top: $-xs;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
> p.empty-text {
|
||||||
|
display: block;
|
||||||
|
font-size: $fs-m;
|
||||||
|
}
|
||||||
hr {
|
hr {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
@ -34,18 +34,30 @@
|
|||||||
@else
|
@else
|
||||||
<h3>Recent Books</h3>
|
<h3>Recent Books</h3>
|
||||||
@endif
|
@endif
|
||||||
@include('partials/entity-list', ['entities' => $recents, 'style' => 'compact'])
|
@include('partials/entity-list', [
|
||||||
|
'entities' => $recents,
|
||||||
|
'style' => 'compact',
|
||||||
|
'emptyText' => $signedIn ? 'You have not viewed any pages' : 'No books have been created'
|
||||||
|
])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<h3><a class="no-color" href="/pages/recently-created">Recently Created Pages</a></h3>
|
<h3><a class="no-color" href="/pages/recently-created">Recently Created Pages</a></h3>
|
||||||
<div id="recently-created-pages">
|
<div id="recently-created-pages">
|
||||||
@include('partials/entity-list', ['entities' => $recentlyCreatedPages, 'style' => 'compact'])
|
@include('partials/entity-list', [
|
||||||
|
'entities' => $recentlyCreatedPages,
|
||||||
|
'style' => 'compact',
|
||||||
|
'emptyText' => 'No pages have been recently created'
|
||||||
|
])
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3><a class="no-color" href="/pages/recently-updated">Recently Updated Pages</a></h3>
|
<h3><a class="no-color" href="/pages/recently-updated">Recently Updated Pages</a></h3>
|
||||||
<div id="recently-updated-pages">
|
<div id="recently-updated-pages">
|
||||||
@include('partials/entity-list', ['entities' => $recentlyUpdatedPages, 'style' => 'compact'])
|
@include('partials/entity-list', [
|
||||||
|
'entities' => $recentlyUpdatedPages,
|
||||||
|
'style' => 'compact',
|
||||||
|
'emptyText' => 'No pages have been recently updated'
|
||||||
|
])
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
{{--Requires an entity to be passed with the name $entity--}}
|
|
||||||
|
|
||||||
@if(count($activity) > 0)
|
@if(count($activity) > 0)
|
||||||
<div class="activity-list">
|
<div class="activity-list">
|
||||||
@foreach($activity as $activityItem)
|
@foreach($activity as $activityItem)
|
||||||
@ -10,5 +8,5 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<p class="text-muted">New activity will show up here.</p>
|
<p class="text-muted">No activity to show</p>
|
||||||
@endif
|
@endif
|
@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
@else
|
@else
|
||||||
<p class="text-muted">
|
<p class="text-muted empty-text">
|
||||||
No items available
|
{{ $emptyText or 'No items available' }}
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user