diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index dff319506..02b4789c2 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -60,7 +60,7 @@ class HomeController extends Controller
$view = 'home-custom';
}
- return view($view, [
+ return view('common/' . $view, [
'activity' => $activity,
'recents' => $recents,
'recentlyUpdatedPages' => $recentlyUpdatedPages,
@@ -150,7 +150,7 @@ class HomeController extends Controller
$allowRobots = $sitePublic;
}
return response()
- ->view('robots', ['allowRobots' => $allowRobots])
+ ->view('common/robots', ['allowRobots' => $allowRobots])
->header('Content-Type', 'text/plain');
}
diff --git a/resources/views/common/home-book.blade.php b/resources/views/common/home-book.blade.php
new file mode 100644
index 000000000..2849d5ecd
--- /dev/null
+++ b/resources/views/common/home-book.blade.php
@@ -0,0 +1,18 @@
+@extends('sidebar-layout')
+
+@section('toolbar')
+
+@stop
+
+@section('sidebar')
+ @include('common/home-sidebar')
+@stop
+
+@section('body')
+ @include('books/list', ['books' => $books, 'bookViewType' => $booksViewType])
+@stop
\ No newline at end of file
diff --git a/resources/views/common/home-custom.blade.php b/resources/views/common/home-custom.blade.php
new file mode 100644
index 000000000..89154ee13
--- /dev/null
+++ b/resources/views/common/home-custom.blade.php
@@ -0,0 +1,19 @@
+@extends('sidebar-layout')
+
+@section('toolbar')
+
+@stop
+
+@section('sidebar')
+ @include('common/home-sidebar')
+@stop
+
+@section('body')
+
+ @include('pages/page-display', ['page' => $customHomepage])
+
+@stop
diff --git a/resources/views/common/home-sidebar.blade.php b/resources/views/common/home-sidebar.blade.php
new file mode 100644
index 000000000..221029481
--- /dev/null
+++ b/resources/views/common/home-sidebar.blade.php
@@ -0,0 +1,31 @@
+@if(count($draftPages) > 0)
+
+
@icon('edit') {{ trans('entities.my_recent_drafts') }}
+ @include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
+
+@endif
+
+
+
@icon($signedIn ? 'view' : 'star-circle') {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}
+ @include('partials/entity-list', [
+ 'entities' => $recents,
+ 'style' => 'compact',
+ 'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
+ ])
+
+
+
+
+
+ @include('partials/entity-list', [
+ 'entities' => $recentlyUpdatedPages,
+ 'style' => 'compact',
+ 'emptyText' => trans('entities.no_pages_recently_updated')
+ ])
+
+
+
+
+
@icon('time') {{ trans('entities.recent_activity') }}
+ @include('partials/activity-list', ['activity' => $activity])
+
\ No newline at end of file
diff --git a/resources/views/home.blade.php b/resources/views/common/home.blade.php
similarity index 100%
rename from resources/views/home.blade.php
rename to resources/views/common/home.blade.php
diff --git a/resources/views/robots.blade.php b/resources/views/common/robots.blade.php
similarity index 100%
rename from resources/views/robots.blade.php
rename to resources/views/common/robots.blade.php
diff --git a/resources/views/home-book.blade.php b/resources/views/home-book.blade.php
deleted file mode 100644
index 03fce4b8e..000000000
--- a/resources/views/home-book.blade.php
+++ /dev/null
@@ -1,48 +0,0 @@
-@extends('sidebar-layout')
-
-@section('toolbar')
-
-@stop
-
-@section('sidebar')
- @if(count($draftPages) > 0)
-
-
@icon('edit') {{ trans('entities.my_recent_drafts') }}
- @include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
-
- @endif
-
-
-
@icon($signedIn ? 'view' : 'star-circle') {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}
- @include('partials/entity-list', [
- 'entities' => $recents,
- 'style' => 'compact',
- 'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
- ])
-
-
-
-
-
- @include('partials/entity-list', [
- 'entities' => $recentlyUpdatedPages,
- 'style' => 'compact',
- 'emptyText' => trans('entities.no_pages_recently_updated')
- ])
-
-
-
-
-
@icon('time') {{ trans('entities.recent_activity') }}
- @include('partials/activity-list', ['activity' => $activity])
-
-@stop
-
-@section('body')
- @include('books/list', ['books' => $books, 'bookViewType' => $booksViewType])
-@stop
\ No newline at end of file
diff --git a/resources/views/home-custom.blade.php b/resources/views/home-custom.blade.php
deleted file mode 100644
index d9fbab887..000000000
--- a/resources/views/home-custom.blade.php
+++ /dev/null
@@ -1,56 +0,0 @@
-@extends('sidebar-layout')
-
-@section('toolbar')
-
-@stop
-
-@section('sidebar')
- @if(count($draftPages) > 0)
-
-
@icon('edit') {{ trans('entities.my_recent_drafts') }}
- @include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
-
- @endif
-
-
-
@icon($signedIn ? 'view' : 'star-circle') {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}
- @include('partials/entity-list', [
- 'entities' => $recents,
- 'style' => 'compact',
- 'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
- ])
-
-
-
-
-
- @include('partials/entity-list', [
- 'entities' => $recentlyUpdatedPages,
- 'style' => 'compact',
- 'emptyText' => trans('entities.no_pages_recently_updated')
- ])
-
-
-
-
-
@icon('time') {{ trans('entities.recent_activity') }}
- @include('partials/activity-list', ['activity' => $activity])
-
-@stop
-
-@section('body')
-
- @include('pages/page-display', ['page' => $customHomepage])
-
-@stop
-
-@section('scripts')
-
-@stop
-
diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php
index 16f967179..3448a164a 100644
--- a/resources/views/pages/show.blade.php
+++ b/resources/views/pages/show.blade.php
@@ -118,7 +118,7 @@
@stop
@section('body')
-