瀏覽代碼

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