BookStack/resources/views/home.blade.php

59 lines
2.2 KiB
PHP
Raw Normal View History

2017-08-20 08:57:25 -04:00
@extends('simple-layout')
2015-08-12 13:48:26 -04:00
2017-08-20 08:57:25 -04:00
@section('toolbar')
<div class="col-sm-6 faded">
<div class="action-buttons text-left">
<a expand-toggle=".entity-list.compact .entity-item-snippet" class="text-primary text-button">@icon('expand-text'){{ trans('common.toggle_details') }}</a>
</div>
</div>
2017-08-20 08:57:25 -04:00
@stop
@section('body')
<div class="container" ng-non-bindable>
2015-08-30 12:53:30 -04:00
<div class="row">
<div class="col-sm-4">
2017-08-20 08:57:25 -04:00
@if(count($draftPages) > 0)
<div id="recent-drafts" class="card">
2018-02-17 08:30:52 -05:00
<h3>@icon('edit') {{ trans('entities.my_recent_drafts') }}</h3>
@include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
2017-08-20 08:57:25 -04:00
</div>
@endif
2017-08-20 08:57:25 -04:00
<div class="card">
<h3>@icon($signedIn ? 'view' : 'star-circle') {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h3>
@include('partials/entity-list', [
2017-08-20 08:57:25 -04:00
'entities' => $recents,
'style' => 'compact',
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
])
</div>
2017-08-20 08:57:25 -04:00
</div>
2017-08-20 08:57:25 -04:00
<div class="col-sm-4">
<div class="card">
<h3>@icon('file') <a class="no-color" href="{{ baseUrl("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
2017-08-20 08:57:25 -04:00
<div id="recently-updated-pages">
@include('partials/entity-list', [
'entities' => $recentlyUpdatedPages,
'style' => 'compact',
'emptyText' => trans('entities.no_pages_recently_updated')
])
</div>
</div>
</div>
<div class="col-sm-4" id="recent-activity">
2017-08-20 08:57:25 -04:00
<div class="card">
2018-02-17 08:30:52 -05:00
<h3>@icon('time') {{ trans('entities.recent_activity') }}</h3>
@include('partials/activity-list', ['activity' => $activity])
2017-08-20 08:57:25 -04:00
</div>
2015-08-30 12:53:30 -04:00
</div>
</div>
</div>
2015-08-13 02:44:10 -04:00
2015-08-30 12:53:30 -04:00
@stop