Bladeren bron

Update timeline layouts

Daniel Supernault 5 jaren geleden
bovenliggende
commit
311b963993
2 gewijzigde bestanden met toevoegingen van 29 en 2 verwijderingen
  1. 15 1
      resources/views/timeline/home.blade.php
  2. 14 1
      resources/views/timeline/local.blade.php

+ 15 - 1
resources/views/timeline/home.blade.php

@@ -2,10 +2,24 @@
 
 @section('content')
 
-<timeline scope="home"></timeline>
+<timeline scope="home" layout="feed"></timeline>
 
 @endsection
 
+
+@if($layout == 'grid')
+@push('styles')
+<style type="text/css">
+	body {
+		background: #fff !important;
+	}
+	.navbar.border-bottom {
+		border-bottom: none !important;
+	}
+</style>
+@endpush
+@endif
+
 @push('scripts')
 <script type="text/javascript" src="{{ mix('js/timeline.js') }}"></script>
 <script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>

+ 14 - 1
resources/views/timeline/local.blade.php

@@ -2,10 +2,23 @@
 
 @section('content')
 
-<timeline scope="local"></timeline>
+<timeline scope="local" layout="feed"></timeline>
 
 @endsection
 
+@if($layout == 'grid')
+@push('styles')
+<style type="text/css">
+	body {
+		background: #fff !important;
+	}
+	.navbar.border-bottom {
+		border-bottom: none !important;
+	}
+</style>
+@endpush
+@endif
+
 @push('scripts')
 <script type="text/javascript" src="{{ mix('js/timeline.js') }}"></script>
 <script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>