BookStack/resources/views/home.blade.php

69 lines
2.6 KiB
PHP
Raw Normal View History

2015-08-12 13:48:26 -04:00
@extends('base')
@section('content')
2015-08-13 02:44:10 -04:00
<div class="faded-small toolbar">
<div class="container">
<div class="row">
2016-12-04 09:08:04 -05:00
<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"><i class="zmdi zmdi-wrap-text"></i>{{ trans('common.toggle_details') }}</a>
</div>
</div>
</div>
</div>
</div>
<div class="container" ng-non-bindable>
2015-08-30 12:53:30 -04:00
<div class="row">
<div class="col-sm-4">
<div id="recent-drafts">
@if(count($draftPages) > 0)
2016-12-04 09:08:04 -05:00
<h4>{{ trans('entities.my_recent_drafts') }}</h4>
@include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
@endif
</div>
@if($signedIn)
2016-12-04 09:08:04 -05:00
<h4>{{ trans('entities.my_recently_viewed') }}</h4>
@else
2016-12-04 09:08:04 -05:00
<h4>{{ trans('entities.books_recent') }}</h4>
@endif
@include('partials/entity-list', [
'entities' => $recents,
'style' => 'compact',
2016-12-04 09:08:04 -05:00
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
])
</div>
<div class="col-sm-4">
2016-12-04 09:08:04 -05:00
<h4><a class="no-color" href="{{ baseUrl("/pages/recently-created") }}">{{ trans('entities.recently_created_pages') }}</a></h4>
<div id="recently-created-pages">
@include('partials/entity-list', [
'entities' => $recentlyCreatedPages,
'style' => 'compact',
2016-12-04 09:08:04 -05:00
'emptyText' => trans('entities.no_pages_recently_created')
])
</div>
2016-12-04 09:08:04 -05:00
<h4><a class="no-color" href="{{ baseUrl("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h4>
<div id="recently-updated-pages">
@include('partials/entity-list', [
'entities' => $recentlyUpdatedPages,
'style' => 'compact',
'emptyText' => trans('entities.no_pages_recently_updated')
])
</div>
</div>
<div class="col-sm-4" id="recent-activity">
2016-12-04 09:08:04 -05:00
<h4>{{ trans('entities.recent_activity') }}</h4>
2015-08-30 12:53:30 -04:00
@include('partials/activity-list', ['activity' => $activity])
</div>
</div>
</div>
2015-08-13 02:44:10 -04:00
2015-08-30 12:53:30 -04:00
@stop