소스 검색

Update timeline layouts

Daniel Supernault 5 년 전
부모
커밋
311b963993
2개의 변경된 파일29개의 추가작업 그리고 2개의 파일을 삭제
  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>