소스 검색

Update custom page views

Daniel Supernault 6 년 전
부모
커밋
bb207a42bd
2개의 변경된 파일16개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 1
      resources/views/site/privacy.blade.php
  2. 8 1
      resources/views/site/terms.blade.php

+ 8 - 1
resources/views/site/privacy.blade.php

@@ -2,6 +2,13 @@
 
 @section('section')
 
+  @if($page && $page->content)
+  <div class="title">
+    <h3 class="font-weight-bold">Privacy Policy</h3>
+  </div>
+  <hr>
+  {!! $page->content !!}
+  @else
   <div class="title">
     <h3 class="font-weight-bold">Privacy Policy</h3>
   </div>
@@ -81,7 +88,7 @@
 
     <p class="">Originally adapted from the <a href="https://mastodon.social/terms">Mastodon</a> privacy policy.</p>
   </div>
-
+  @endif
 @endsection
 
 @push('meta')

+ 8 - 1
resources/views/site/terms.blade.php

@@ -2,6 +2,13 @@
 
 @section('section')
 
+	@if($page && $page->content)
+	<div class="title">
+		<h3 class="font-weight-bold">Terms Of Use</h3>
+	</div>
+	<hr>
+	{!! $page->content !!}
+	@else
 	<div class="title">
 		<h3 class="font-weight-bold">Terms Of Use</h3>
 	</div>
@@ -38,7 +45,7 @@
 	<p class="">These terms and conditions are governed by and construed in accordance with the laws of Canada and you irrevocably submit to the exclusive jurisdiction of the courts in that State or location.</p>
 	<h5 class="font-weight-bold">9. Additional Rules</h5>
 	<p class="">This website does not have any additional rules.</p>
-
+	@endif
 @endsection
 
 @push('meta')