Răsfoiți Sursa

Update profile partial, allow hidden follower counts

Daniel Supernault 6 ani în urmă
părinte
comite
fcd43097d6
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      resources/views/profile/partial/user-info.blade.php

+ 4 - 0
resources/views/profile/partial/user-info.blade.php

@@ -57,18 +57,22 @@
               Posts
               Posts
               </a>
               </a>
             </div>
             </div>
+            @if($settings->show_profile_follower_count)
             <div class="font-weight-light pr-5">
             <div class="font-weight-light pr-5">
               <a class="text-dark" href="{{$user->url('/followers')}}">
               <a class="text-dark" href="{{$user->url('/followers')}}">
               <span class="font-weight-bold">{{$user->followerCount(true)}}</span> 
               <span class="font-weight-bold">{{$user->followerCount(true)}}</span> 
               Followers
               Followers
               </a>
               </a>
             </div>
             </div>
+            @endif
+            @if($settings->show_profile_following_count)
             <div class="font-weight-light pr-5">
             <div class="font-weight-light pr-5">
               <a class="text-dark" href="{{$user->url('/following')}}">
               <a class="text-dark" href="{{$user->url('/following')}}">
               <span class="font-weight-bold">{{$user->followingCount(true)}}</span> 
               <span class="font-weight-bold">{{$user->followingCount(true)}}</span> 
               Following
               Following
               </a>
               </a>
             </div>
             </div>
+            @endif
           </div>
           </div>
           <p class="lead mb-0">
           <p class="lead mb-0">
             <span class="font-weight-bold">{{$user->name}}</span> 
             <span class="font-weight-bold">{{$user->name}}</span>