Browse Source

Merge pull request #122 from Whaxion/dev

Change id to username in users list and change the url
daniel 7 years ago
parent
commit
e8b88f0b59
1 changed files with 4 additions and 4 deletions
  1. 4 4
      resources/views/admin/users/home.blade.php

+ 4 - 4
resources/views/admin/users/home.blade.php

@@ -10,7 +10,7 @@
   <table class="table">
     <thead class="thead-dark">
       <tr>
-        <th scope="col">#</th>
+        <th scope="col">Username</th>
         <th scope="col">Statuses</th>
         <th scope="col">Storage</th>
         <th scope="col">Role</th>
@@ -21,8 +21,8 @@
       @foreach($users as $user)
       <tr>
         <th scope="row">
-          <a href="/users/show/{{$user->id}}">
-            {{$user->id}}
+          <a href="{{$user->url()}}">
+            {{$user->username}}
           </a>
         </th>
         <td>{{$user->profile->statuses->count()}}</td>
@@ -48,4 +48,4 @@
       });
     });
   </script>
-@endpush
+@endpush