ソースを参照

Update Help Center

Daniel Supernault 6 年 前
コミット
b6757550f2
1 ファイル変更11 行追加3 行削除
  1. 11 3
      resources/views/site/help/your-profile.blade.php

+ 11 - 3
resources/views/site/help/your-profile.blade.php

@@ -140,7 +140,7 @@
       </div>
     </div>
   </p>
-  {{-- <hr>
+  <hr>
   <p class="h5 text-muted font-weight-light" id="delete-your-account">Delete Your Account</p>
   <p> 
     <a class="text-dark font-weight-bold" data-toggle="collapse" href="#del-collapse1" role="button" aria-expanded="false" aria-controls="del-collapse1">
@@ -159,6 +159,7 @@
       </div>
     </div>
   </p>
+  @if(config('pixelfed.account_deletion'))
   <p> 
     <a class="text-dark font-weight-bold" data-toggle="collapse" href="#del-collapse2" role="button" aria-expanded="false" aria-controls="del-collapse2">
       <i class="fas fa-chevron-down mr-2"></i>
@@ -166,9 +167,15 @@
     </a>
     <div class="collapse" id="del-collapse2">
       <div>
+        @if(config('pixelfed.account_delete_after') == false)
+        <div class="bg-light p-3 mb-4">
+          <p class="mb-0">When you delete your account, your profile, photos, videos, comments, likes and followers will be <b>permanently removed</b>. If you'd just like to take a break, you can <a href="{{route('settings.remove.temporary')}}">temporarily disable</a> your account instead.</p>
+        </div>
+        @else
         <div class="bg-light p-3 mb-4">
-          <p class="mb-0">When you delete your account, your profile, photos, videos, comments, likes and followers will be permanently removed. If you'd just like to take a break, you can <a href="{{route('settings.remove.temporary')}}">temporarily disable</a> your account instead.</p>
+          <p class="mb-0">When you delete your account, your profile, photos, videos, comments, likes and followers will be <b>permanently removed</b> after {{config('pixelfed.account_delete_after')}} days. You can log in during that period to prevent your account from permanent deletion. If you'd just like to take a break, you can <a href="{{route('settings.remove.temporary')}}">temporarily disable</a> your account instead.</p>
         </div>
+        @endif
         <p>After you delete your account, you can't sign up again with the same username on this instance or add that username to another account on this instance, and we can't reactivate deleted accounts.</p>
         <p>To permanently delete your account:</p>
         <ol class="font-weight-light">
@@ -178,5 +185,6 @@
         </ol>
       </div>
     </div>
-  </p> --}}
+  </p>
+  @endif
 @endsection