diff --git a/app/Models/Link.php b/app/Models/Link.php index f9fb3bc8..a8ac52e7 100644 --- a/app/Models/Link.php +++ b/app/Models/Link.php @@ -227,7 +227,7 @@ class Link extends Model implements Auditable public function addedAt(): string { - $output = 'created_at->toIso8601String() . '"'; $output .= ' title="' . formatDateTime($this->created_at) . '">'; $output .= formatDateTime($this->created_at, true); diff --git a/resources/views/app/bookmarklet/create.blade.php b/resources/views/app/bookmarklet/create.blade.php index 5ecfbd56..72944db3 100644 --- a/resources/views/app/bookmarklet/create.blade.php +++ b/resources/views/app/bookmarklet/create.blade.php @@ -1,7 +1,5 @@ @extends('layouts.bookmarklet') @section('content') - @include('models.links.partials.create-form') - @endsection diff --git a/resources/views/app/search/partials/table.blade.php b/resources/views/app/search/partials/table.blade.php index 07b445c0..97237e73 100644 --- a/resources/views/app/search/partials/table.blade.php +++ b/resources/views/app/search/partials/table.blade.php @@ -1,4 +1,4 @@ -
+
@@ -18,11 +18,11 @@ - + @foreach($results as $link) - - + + -
- + {{ $link->title }} @if($link->tags->count() > 0) @@ -35,12 +35,12 @@ @endif + {{ $link->shortUrl() }} {!! $link->addedAt() !!}{!! $link->addedAt() !!} diff --git a/resources/views/app/search/search.blade.php b/resources/views/app/search/search.blade.php index cb8b02a9..4cf7e667 100644 --- a/resources/views/app/search/search.blade.php +++ b/resources/views/app/search/search.blade.php @@ -5,13 +5,13 @@ use App\Enums\ModelAttribute; @section('content') -
+
- + {{ $tag->links_count }} +
diff --git a/resources/views/models/tags/partials/table.blade.php b/resources/views/models/tags/partials/table.blade.php index c519bdf5..131ef7d4 100644 --- a/resources/views/models/tags/partials/table.blade.php +++ b/resources/views/models/tags/partials/table.blade.php @@ -1,4 +1,4 @@ -
+
diff --git a/resources/views/models/tags/show.blade.php b/resources/views/models/tags/show.blade.php index 7c2c0769..64aecf48 100644 --- a/resources/views/models/tags/show.blade.php +++ b/resources/views/models/tags/show.blade.php @@ -2,91 +2,8 @@ @section('content') -
-
- - - @lang('tag.tag') - - - - @method('DELETE') - @csrf - - -
-
- -

{{ $tag->name }}

- -
- @lang('linkace.added_by'): -
- -
-
- -
- @if($links->isNotEmpty()) -
- - -
- - - @else - -
- @lang('linkace.no_results_found', ['model' => trans('link.links')]) -
- - @endif -
- - @if($links->isNotEmpty()) - {!! $links->onEachSide(1)->withQueryString()->links() !!} - @endif - -
-

@lang('linkace.history')

- -
- @foreach($history as $entry) - @if($loop->index === 5 && $loop->count >= 10) - -
- @endif - - @endforeach -
{{ formatDateTime($tag->created_at) }}: @lang('tag.history_created')
- @if(count($history) >= 10) -
- @endif -
-
+ @include('models.tags.partials.show.details') + @include('models.tags.partials.show.links') + @include('models.tags.partials.show.history') @endsection diff --git a/resources/views/models/users/show.blade.php b/resources/views/models/users/show.blade.php index 20736dc5..b1bb773b 100644 --- a/resources/views/models/users/show.blade.php +++ b/resources/views/models/users/show.blade.php @@ -2,102 +2,104 @@ @section('content') -
-
- @lang('user.user') + -
-
+
+
-
-
- @lang('link.recent_links') +
+
+ @lang('link.recent_links') +
+ +
-
+
+ +
+
+ @lang('stats.stats') +
+ +
    +
  • + @lang('stats.total_links') + {{ $stats['total_links'] }}
  • - @endforelse -
+
  • + @lang('stats.total_lists') + {{ $stats['total_lists'] }} +
  • +
  • + @lang('stats.total_tags') + {{ $stats['total_tags'] }} +
  • +
  • + @lang('stats.total_notes') + {{ $stats['total_notes'] }} +
  • + +
    + +
    +
    + @lang('list.recent_lists') +
    + +
    + @forelse($lists as $list) + + {{ $list->name }} + + @empty +
    + @lang('linkace.no_results_found', ['model' => trans('list.lists')]) +
    + @endforelse +
    +
    + +
    +
    + @lang('tag.recent_tags') +
    + +
    + @forelse($tags as $tag) + + {{ $tag->name }} + + @empty +
    + @lang('linkace.no_results_found', ['model' => trans('tag.tags')]) +
    + @endforelse +
    +
    +
    - -
    -
    - -
    -
    - @lang('stats.stats') -
    - -
      -
    • - @lang('stats.total_links') - {{ $stats['total_links'] }} -
    • -
    • - @lang('stats.total_lists') - {{ $stats['total_lists'] }} -
    • -
    • - @lang('stats.total_tags') - {{ $stats['total_tags'] }} -
    • -
    • - @lang('stats.total_notes') - {{ $stats['total_notes'] }} -
    • -
    -
    - -
    -
    - @lang('list.recent_lists') -
    - -
    - @forelse($lists as $list) - - {{ $list->name }} - - @empty -
    - @lang('linkace.no_results_found', ['model' => trans('list.lists')]) -
    - @endforelse -
    -
    - -
    -
    - @lang('tag.recent_tags') -
    - -
    - @forelse($tags as $tag) - - {{ $tag->name }} - - @empty -
    - @lang('linkace.no_results_found', ['model' => trans('tag.tags')]) -
    - @endforelse -
    -
    -