Fix info link for videos, limit showing duplicates to 10

This commit is contained in:
Deon George 2024-10-04 15:39:38 +10:00
parent ae1c8cbc28
commit 861cefb2db
7 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ trait Multimedia
{ {
use Type; use Type;
protected const list_duplicates = 20; protected const list_duplicates = 10;
protected const list_deletes = 50; protected const list_deletes = 50;
private function controller(string $type): string private function controller(string $type): string

View File

@ -0,0 +1 @@
<a href="{{ url('v/info',$id) }}" target="{{ $id }}">{{ $id }}</a>

View File

@ -79,7 +79,7 @@
<dd> <dd>
@foreach($x as $oo) @foreach($x as $oo)
@if(! $loop->first)| @endif @if(! $loop->first)| @endif
<x-info :id="$oo->id"/> <x-photo.info :id="$oo->id"/>
@endforeach @endforeach
</dd> </dd>
@endif @endif

View File

@ -26,7 +26,7 @@
<div class="card-footer card-comments"> <div class="card-footer card-comments">
<table class="table table-sm table-striped"> <table class="table table-sm table-striped">
<tr><th>ID</th><td><x-info :id="$o->id"/></td></tr> <tr><th>ID</th><td><x-photo.info :id="$o->id"/></td></tr>
@foreach($data as $k=>$v) @foreach($data as $k=>$v)
<tr @class(['bg-success'=>($reference->exists && ((string)$reference->{$v[1]} === (string)$o->{$v[1]}))])> <tr @class(['bg-success'=>($reference->exists && ((string)$reference->{$v[1]} === (string)$o->{$v[1]}))])>

View File

@ -31,7 +31,7 @@
@if($vo->duplicate)<button class="btn btn-sm btn-warning">DUPLICATE</button>@endif @if($vo->duplicate)<button class="btn btn-sm btn-warning">DUPLICATE</button>@endif
@if($vo->ignore_duplicate)<button class="btn btn-sm btn-secondary">DUPLICATE IGNORE</button>@endif @if($vo->ignore_duplicate)<button class="btn btn-sm btn-secondary">DUPLICATE IGNORE</button>@endif
@if($vo->remove)<button class="btn btn-sm btn-danger">PENDING DELETE</button>@endif @if($vo->remove)<button class="btn btn-sm btn-danger">PENDING DELETE</button>@endif
@if($po->flag)<button class="btn btn-sm btn-primary">FLAG</button>@endif @if($vo->flag)<button class="btn btn-sm btn-primary">FLAG</button>@endif
</div> </div>
<div class="dl-horizontal"> <div class="dl-horizontal">
<dt>Signature</dt><dd>{{ $vo->signature(TRUE) }}</dd> <dt>Signature</dt><dd>{{ $vo->signature(TRUE) }}</dd>

View File

@ -26,7 +26,7 @@
<div class="card-footer card-comments"> <div class="card-footer card-comments">
<table class="table table-sm table-striped"> <table class="table table-sm table-striped">
<tr><th>ID</th><td><x-info :id="$o->id"/></td></tr> <tr><th>ID</th><td><x-video.info :id="$o->id"/></td></tr>
@foreach($data as $k=>$v) @foreach($data as $k=>$v)
<tr @class(['bg-success'=>($reference->exists && ((string)$reference->{$v[1]} === (string)$o->{$v[1]}))])> <tr @class(['bg-success'=>($reference->exists && ((string)$reference->{$v[1]} === (string)$o->{$v[1]}))])>