1
0
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:
Kovah 2022-07-19 17:33:08 +02:00
parent f22d5240cc
commit 9bb2e7c7a6
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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">