Преглед на файлове

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')