Update relationship settings

This commit is contained in:
Daniel Supernault 2019-06-17 22:46:14 -06:00
parent 25d632c761
commit 80db76ced6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,34 +18,33 @@
</li> </li>
</ul> </ul>
<hr> <hr>
<table class="table table-bordered"> <div class="table-responsive">
<table class="table table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<th scope="col" class="pt-0 pb-1 mt-0"> {{-- <th scope="col" class="pt-0 pb-1 mt-0">
<input type="checkbox" name="check" class="form-control check-all"> <input type="checkbox" name="check" class="form-control check-all">
</th> </th> --}}
<th scope="col">Username</th> <th scope="col">Username</th>
<th scope="col">Relationship</th>
<th scope="col">Action</th> <th scope="col">Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($data as $follower) @foreach($data as $follower)
<tr> <tr>
<th scope="row" class="pb-0 pt-1 my-0"> {{-- <th scope="row" class="pb-0 pt-1 my-0">
{{-- <input type="checkbox" class="form-control mr-1 check-row"> --}} <input type="checkbox" class="form-control mr-1 check-row">
</th> </th> --}}
<td class="font-weight-bold"> <td class="font-weight-bold">
<img src="{{$follower->avatarUrl()}}" width="20px" height="20px" class="rounded-circle border mr-2"> <a href="{{$follower->url()}}" class="text-decoration-none text-dark">
<span class="d-inline-block text-truncate" style="max-width: 160px;" title="{{$follower->username}}">{{$follower->username}}</span> <p class="mb-0 pb-0 text-truncate" title="{{$follower->username}}">{{$follower->username}}</p>
</a>
</td> </td>
@if($mode == 'following') @if($mode == 'following')
<td class="text-center">Following</td>
<td class="text-center"> <td class="text-center">
<a class="btn btn-outline-danger btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="unfollow">Unfollow</a> <a class="btn btn-outline-danger btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="unfollow">Unfollow</a>
</td> </td>
@else @else
<td class="text-center">Follower</td>
<td class="text-center"> <td class="text-center">
<a class="btn btn-outline-primary btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="mute">Mute</a> <a class="btn btn-outline-primary btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="mute">Mute</a>
<a class="btn btn-outline-danger btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="block">Block</a> <a class="btn btn-outline-danger btn-sm py-0 action-btn" href="#" data-id="{{$follower->id}}" data-action="block">Block</a>
@ -55,10 +54,19 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
</div>
<div class="d-flex justify-content-center">{{$data->appends(['mode' => $mode])->links()}}</div> <div class="d-flex justify-content-center">{{$data->appends(['mode' => $mode])->links()}}</div>
@endif @endif
@endsection @endsection
@push('styles')
<style type="text/css">
.table-hover tbody tr:hover {
color: #718096;
background-color: #F7FAFC;
}
</style>
@endpush
@push('scripts') @push('scripts')
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(() => { $(document).ready(() => {