|
4 | 4 | <div class="mt-2 lg:flex lg:items-center lg:justify-between">
|
5 | 5 | <div class="flex-1">
|
6 | 6 | <h2 class="text-xl font-semibold font-sans text-skin-inverted leading-7">
|
7 |
| - <a href="{{ route('discussions.show', $discussion) }}" class="hover:text-skin-primary">{{ $discussion->title }}</a> |
| 7 | + <a href="{{ route('discussions.show', $discussion) }}" class="hover:text-skin-primary"> |
| 8 | + {{ $discussion->title }} |
| 9 | + </a> |
8 | 10 | </h2>
|
9 | 11 | </div>
|
10 | 12 | <div class="mt-2 lg:mt-0 shrink-0 self-start">
|
|
22 | 24 | </p>
|
23 | 25 | <div class="mt-3 flex justify-between">
|
24 | 26 | <div class="flex items-center text-sm font-sans text-skin-muted">
|
25 |
| - <a class="shrink-0" href="{{ route('profile', $discussion->author->username) }}"> |
26 |
| - <img class="h-6 w-6 object-cover rounded-full" src="{{ $discussion->author->profile_photo_url }}" alt="{{ $discussion->author->name }}"> |
| 27 | + <a class="shrink-0" href="{{ route('profile', $discussion->user->username) }}"> |
| 28 | + <img class="h-6 w-6 object-cover rounded-full" src="{{ $discussion->user->profile_photo_url }}" alt="{{ $discussion->user->name }}"> |
27 | 29 | </a>
|
28 | 30 | <span class="ml-2 pr-1">Posté par</span>
|
29 | 31 | <div class="flex items-center space-x-1">
|
30 |
| - <a href="{{ route('profile', $discussion->author->username) }}" class="text-skin-inverted hover:underline">{{ $discussion->author->name }}</a> |
| 32 | + <a href="{{ route('profile', $discussion->user->username) }}" class="text-skin-inverted hover:underline"> |
| 33 | + {{ $discussion->user->name }} |
| 34 | + </a> |
31 | 35 | <span aria-hidden="true">·</span>
|
32 | 36 | <time-ago time="{{ $discussion->created_at->getTimestamp() }}"/>
|
33 | 37 | </div>
|
|
37 | 41 | <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
38 | 42 | <path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z" />
|
39 | 43 | </svg>
|
40 |
| - <span class="font-normal text-skin-inverted-muted">{{ $discussion->count_all_replies_with_child }}</span> |
41 |
| - <span class="sr-only">réponses</span> |
| 44 | + <span class="font-normal text-skin-inverted-muted"> |
| 45 | + {{ $discussion->count_all_replies_with_child }} |
| 46 | + </span> |
| 47 | + <span class="sr-only">{{ __('réponses') }}</span> |
42 | 48 | </p>
|
43 | 49 | <a href="{{ route('discussions.edit', $discussion->slug()) }}" class="inline-flex items-center font-normal text-skin-inverted-muted hover:text-skin-base hover:underline">
|
44 | 50 | <svg class="h-4 w-4 mr-1.5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
45 | 51 | <path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125" />
|
46 | 52 | </svg>
|
47 |
| - Éditer |
| 53 | + {{ __('Éditer') }} |
48 | 54 | </a>
|
49 | 55 | </div>
|
50 | 56 | </div>
|
|
0 commit comments