mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-04-19 14:32:19 +02:00
Last adjustments for tag and list handling
This commit is contained in:
parent
f22d5240cc
commit
9bb2e7c7a6
@ -26,12 +26,14 @@ class DashboardController extends Controller
|
||||
|
||||
$recentTags = Tag::query()
|
||||
->visibleForUser()
|
||||
->with('user:id,name')
|
||||
->latest()
|
||||
->limit(25)
|
||||
->get();
|
||||
|
||||
$recentLists = LinkList::query()
|
||||
->visibleForUser()
|
||||
->with('user:id,name')
|
||||
->latest()
|
||||
->limit(15)
|
||||
->get();
|
||||
|
@ -126,8 +126,8 @@
|
||||
|
||||
<div class="card-body">
|
||||
@forelse($recent_lists as $list)
|
||||
<a href="{{ route('lists.show', ['list' => $list]) }}" class="btn btn-light btn-sm">
|
||||
{{ $list->name }}
|
||||
<a href="{{ route('lists.show', ['list' => $list]) }}" class="btn btn-light btn-sm m-1">
|
||||
<x-models.name-with-user :model="$list"/>
|
||||
</a>
|
||||
@empty
|
||||
<div class="text-danger">
|
||||
@ -147,8 +147,8 @@
|
||||
|
||||
<div class="card-body">
|
||||
@forelse($recent_tags as $tag)
|
||||
<a href="{{ route('tags.show', ['tag' => $tag]) }}" class="btn btn-light btn-sm">
|
||||
{{ $tag->name }}
|
||||
<a href="{{ route('tags.show', ['tag' => $tag]) }}" class="btn btn-light btn-sm m-1">
|
||||
<x-models.name-with-user :model="$tag"/>
|
||||
</a>
|
||||
@empty
|
||||
<div class="text-danger">
|
||||
|
Loading…
x
Reference in New Issue
Block a user