Quellcode durchsuchen

Change id to username in users list

Whaxion vor 7 Jahren
Ursprung
Commit
9f0120443e
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      resources/views/admin/users/home.blade.php

+ 3 - 3
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->profile->username}}
           </a>
         </th>
         <td>{{$user->profile->statuses->count()}}</td>