]> BookStack Code Mirror - bookstack/commitdiff
Updated custom home views to use tri-layout
authorDan Brown <redacted>
Sat, 25 May 2019 15:35:09 +0000 (16:35 +0100)
committerDan Brown <redacted>
Sat, 25 May 2019 15:35:27 +0000 (16:35 +0100)
Closes #1423

resources/views/books/index.blade.php
resources/views/common/home-book.blade.php
resources/views/common/home-custom.blade.php
resources/views/common/home-shelves.blade.php

index 38286c2016983e8bd5033cf1c1b62af42762414e..61d99848955188c3d1e9905ad235277442461429 100644 (file)
@@ -1,7 +1,5 @@
 @extends('tri-layout')
 
-@section('container-classes', 'mt-xl')
-
 @section('body')
     @include('books.list', ['books' => $books, 'view' => $view])
 @stop
index 0efaa32ec7305c94526a201e55d28b3832b9d0b9..7644eeb8871278e6b0618d911a5a935c5fd5f948 100644 (file)
@@ -1,23 +1,19 @@
-@extends('simple-layout')
+@extends('tri-layout')
 
 @section('body')
-    <div class="container mt-m">
-        <div class="grid right-focus gap-xl">
-            <div>
+    @include('books.list', ['books' => $books, 'view' => $view])
+@stop
 
-                <div class="actions mb-xl">
-                    <h5>{{ trans('common.actions') }}</h5>
-                    <div class="icon-list text-primary">
-                        @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
-                        @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-                    </div>
-                </div>
+@section('left')
+    @include('common.home-sidebar')
+@stop
 
-                @include('common.home-sidebar')
-            </div>
-            <div>
-                @include('books.list', ['books' => $books, 'view' => $view])
-            </div>
+@section('right')
+    <div class="actions mb-xl">
+        <h5>{{ trans('common.actions') }}</h5>
+        <div class="icon-list text-primary">
+            @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
+            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
         </div>
     </div>
 @stop
\ No newline at end of file
index f1133a60755afa3ade5697d537dc017d5e54a9d8..c93fa1a24c28c285c740372bf46edd552fa09128 100644 (file)
@@ -1,26 +1,24 @@
-@extends('simple-layout')
+@extends('tri-layout')
 
 @section('body')
-    <div class="container mt-l">
-        <div class="grid right-focus gap-xl">
-            <div>
+    <div class="mt-m">
+        <div class="content-wrap card">
+            <div class="page-content" page-display="{{ $customHomepage->id }}">
+                @include('pages.page-display', ['page' => $customHomepage])
+            </div>
+        </div>
+    </div>
+@stop
 
-                <div class="actions mb-xl">
-                    <h5>{{ trans('common.actions') }}</h5>
-                    <div class="icon-list text-primary">
-                        @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-                    </div>
-                </div>
+@section('left')
+    @include('common.home-sidebar')
+@stop
 
-                @include('common.home-sidebar')
-            </div>
-            <div>
-                <div class="content-wrap card">
-                    <div class="page-content" page-display="{{ $customHomepage->id }}">
-                        @include('pages.page-display', ['page' => $customHomepage])
-                    </div>
-                </div>
-            </div>
+@section('right')
+    <div class="actions mb-xl">
+        <h5>{{ trans('common.actions') }}</h5>
+        <div class="icon-list text-primary">
+            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
         </div>
     </div>
 @stop
\ No newline at end of file
index f09bfd4169659d136e54544bdcf620a82e67b114..a9c58589386df4ac996facacd32c3edc8c3c4753 100644 (file)
@@ -1,23 +1,19 @@
-@extends('simple-layout')
+@extends('tri-layout')
 
 @section('body')
-    <div class="container mt-m">
-        <div class="grid right-focus gap-xl">
-            <div>
+    @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
+@stop
 
-                <div class="actions mb-xl">
-                    <h5>{{ trans('common.actions') }}</h5>
-                    <div class="icon-list text-primary">
-                        @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
-                        @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-                    </div>
-                </div>
+@section('left')
+    @include('common.home-sidebar')
+@stop
 
-                @include('common.home-sidebar')
-            </div>
-            <div>
-                @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
-            </div>
+@section('right')
+    <div class="actions mb-xl">
+        <h5>{{ trans('common.actions') }}</h5>
+        <div class="icon-list text-primary">
+            @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
+            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
         </div>
     </div>
 @stop
\ No newline at end of file