fix: consistently color seeder/leecher/completed counts

Also clean up unnecessary spans that only have the color class on them.
This commit is contained in:
Roardom
2025-09-09 06:15:27 +00:00
parent db648e1bec
commit 7afa01fd39
19 changed files with 386 additions and 164 deletions

View File

@@ -50,30 +50,6 @@
color: var(--torrent-tag-hover-fg);
}
.torrent__seeders-link.torrent__seeders-link {
color: var(--torrent-row-seeders-fg);
}
.torrent__seeders-link:hover.torrent__seeders-link:hover {
color: var(--torrent-row-seeders-fg);
}
.torrent__leechers-link.torrent__leechers-link {
color: var(--torrent-row-leechers-fg);
}
.torrent__leechers-link:hover.torrent__leechers-link:hover {
color: var(--torrent-row-leechers-fg);
}
.torrent__completed-link.torrent__completed-link {
color: var(--torrent-row-completed-fg);
}
.torrent__completed-link:hover.torrent__completed-link:hover {
color: var(--torrent-row-completed-fg);
}
@media screen and (max-width: 767px) {
.torrent__tags {
display: flex;
@@ -113,3 +89,21 @@
.torrent__nfo {
line-height: 1;
}
/* Peer counts
---------------------------------------------------------------------------- */
/* Doubled up to override link colors */
.torrent__seeder-count.torrent__seeder-count {
color: var(--torrent-row-seeders-fg);
}
/* Doubled up to override link colors */
.torrent__leecher-count.torrent__leecher-count {
color: var(--torrent-row-leechers-fg);
}
/* Doubled up to override link colors */
.torrent__times-completed-count.torrent__times-completed-count {
color: var(--torrent-row-completed-fg);
}

View File

@@ -271,18 +271,6 @@
}
}
.torrent-search--list__seeders a {
color: var(--torrent-row-seeders-fg);
}
.torrent-search--list__leechers a {
color: var(--torrent-row-leechers-fg);
}
.torrent-search--list__completed a {
color: var(--torrent-row-completed-fg);
}
.torrent-search--list__age {
grid-area: age;
display: grid;

View File

@@ -74,17 +74,26 @@
</a>
</td>
<td>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td>
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>

View File

@@ -92,7 +92,7 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a class="text-green" href="{{ route('peers', ['id' => $torrent->id]) }}">
<a class="torrent__seeder-count" href="{{ route('peers', ['id' => $torrent->id]) }}">
{{ $torrent->seeders }}
</a>
</td>
@@ -105,7 +105,7 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a class="text-red" href="{{ route('peers', ['id' => $torrent->id]) }}">
<a class="torrent__leecher-count" href="{{ route('peers', ['id' => $torrent->id]) }}">
{{ $torrent->leechers }}
</a>
</td>
@@ -118,7 +118,10 @@
title="{{ __('torrent.completed') }}"
@endif
>
<a class="text-orange" href="{{ route('history', ['id' => $torrent->id]) }}">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>

View File

@@ -17,18 +17,24 @@
<span class="torrent-card__size">{{ $torrent->getSize() }}</span>
</div>
<div class="torrent-card__right-header">
<a class="torrent-card__seeds" href="{{ route('peers', ['id' => $torrent->id]) }}">
<a
class="torrent-card__seeds torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
<i class="fas fa-arrow-up"></i>
{{ $torrent->seeders }}
</a>
<span class="torrent-card__meta-separator">&bull;</span>
<a class="torrent-card__leeches" href="{{ route('peers', ['id' => $torrent->id]) }}">
<a
class="torrent-card__leeches torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
<i class="fas fa-arrow-down"></i>
{{ $torrent->leechers }}
</a>
<span class="torrent-card__meta-separator">&bull;</span>
<a
class="torrent-card__completed"
class="torrent-card__completed torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
<i class="fas fa-check"></i>

View File

@@ -220,8 +220,8 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span>{{ $torrent->seeds_count ?? $torrent->seeders }}</span>
<a class="torrent__seeder-count" href="{{ route('peers', ['id' => $torrent->id]) }}">
{{ $torrent->seeds_count ?? $torrent->seeders }}
</a>
</td>
<td
@@ -233,8 +233,8 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span>{{ $torrent->leeches_count ?? $torrent->leechers }}</span>
<a class="torrent__leecher-count" href="{{ route('peers', ['id' => $torrent->id]) }}">
{{ $torrent->leeches_count ?? $torrent->leechers }}
</a>
</td>
<td
@@ -246,10 +246,11 @@
title="{{ __('torrent.completed') }}"
@endif
>
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span>
{{ $torrent->times_completed }}
</span>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
<td class="torrent-search--list__age">

View File

@@ -55,8 +55,15 @@
<tr>
<th>{{ __('common.user') }}</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th title="{{ __('torrent.seeders') }}">
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th title="{{ __('torrent.leechers') }}">
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th title="{{ __('torrent.completed') }}">
<i class="fas fa-check-circle"></i>
</th>
<th wire:click="sortBy('requests_count')" role="columnheader button">
{{ __('request.requests') }}
@include('livewire.includes._sort-icon', ['field' => 'requests_count'])
@@ -80,10 +87,28 @@
</a>
</td>
<td>
{{ $torrentReseed->torrent->seeders }}
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrentReseed->torrent->id]) }}"
>
{{ $torrentReseed->torrent->seeders }}
</a>
</td>
<td>
{{ $torrentReseed->torrent->leechers }}
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrentReseed->torrent->id]) }}"
>
{{ $torrentReseed->torrent->leechers }}
</a>
</td>
<td>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrentReseed->torrent->id]) }}"
>
{{ $torrentReseed->torrent->times_completed }}
</a>
</td>
<td>
{{ $torrentReseed->requests_count }}

View File

@@ -260,10 +260,11 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a href="{{ route('peers', ['id' => $active->torrent_id]) }}">
<span class="text-green">
{{ $active->seeders }}
</span>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $active->torrent_id]) }}"
>
{{ $active->seeders }}
</a>
</td>
<td
@@ -275,17 +276,19 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a href="{{ route('peers', ['id' => $active->torrent_id]) }}">
<span class="text-red">
{{ $active->leechers }}
</span>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $active->torrent_id]) }}"
>
{{ $active->leechers }}
</a>
</td>
<td class="user-active__times">
<a href="{{ route('history', ['id' => $active->torrent_id]) }}">
<span class="text-orange">
{{ $active->times_completed }}
</span>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $active->torrent_id]) }}"
>
{{ $active->times_completed }}
</a>
</td>
<td class="user-active__agent">

View File

@@ -35,24 +35,27 @@
class="user-bookmarks__seeders-header"
wire:click="sortBy('torrents.seeders')"
role="columnheader button"
title="{{ __('torrent.seeders') }}"
>
{{ __('torrent.seeders') }}
<i class="fas fa-arrow-alt-circle-up"></i>
@include('livewire.includes._sort-icon', ['field' => 'torrents.seeders'])
</th>
<th
class="user-bookmarks__leechers-header"
wire:click="sortBy('torrents.leechers')"
role="columnheader button"
title="{{ __('torrent.leechers') }}"
>
{{ __('torrent.leechers') }}
<i class="fas fa-arrow-alt-circle-down"></i>
@include('livewire.includes._sort-icon', ['field' => 'torrents.leechers'])
</th>
<th
class="user-bookmarks__times-completed-header"
wire:click="sortBy('torrents.times_completed')"
role="columnheader button"
title="{{ __('torrent.completed') }}"
>
{{ __('torrent.completed') }}
<i class="fas fa-check-circle"></i>
@include('livewire.includes._sort-icon', ['field' => 'torrents.times_completed'])
</th>
<th
@@ -97,10 +100,11 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a href="{{ route('peers', ['id' => $bookmark->torrent_id]) }}">
<span class="text-green">
{{ $bookmark->seeders }}
</span>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $bookmark->torrent_id]) }}"
>
{{ $bookmark->seeders }}
</a>
</td>
<td
@@ -112,10 +116,11 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a href="{{ route('peers', ['id' => $bookmark->torrent_id]) }}">
<span class="text-red">
{{ $bookmark->leechers }}
</span>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $bookmark->torrent_id]) }}"
>
{{ $bookmark->leechers }}
</a>
</td>
<td
@@ -127,10 +132,11 @@
title="{{ __('torrent.completed') }}"
@endif
>
<a href="{{ route('history', ['id' => $bookmark->torrent_id]) }}">
<span class="text-orange">
{{ $bookmark->times_completed }}
</span>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $bookmark->torrent_id]) }}"
>
{{ $bookmark->times_completed }}
</a>
</td>
<td class="user-bookmarks__created-at">

View File

@@ -201,26 +201,27 @@
{{ \App\Helpers\StringHelper::formatBytes($torrent->size) }}
</td>
<td class="user-earnings__seeders">
<a href="{{ route('peers', ['id' => $torrent->torrent_id]) }}">
<span class="text-green">
{{ $torrent->seeders }}
</span>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->torrent_id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td class="user-earnings__leechers">
<a href="{{ route('peers', ['id' => $torrent->torrent_id]) }}">
<span class="text-red">
{{ $torrent->leechers }}
</span>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->torrent_id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td class="user-earnings__times">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->torrent_id]) }}"
>
<span class="text-orange">
{{ $torrent->times_completed }}
</span>
{{ $torrent->times_completed }}
</a>
</td>
<td class="user-earnings__internal">

View File

@@ -64,24 +64,27 @@
class="user-resurrections__seeders-header"
wire:click="sortBy('seeders')"
role="columnheader button"
title="{{ __('torrent.seeders') }}"
>
{{ __('torrent.seeders') }}
<i class="fas fa-arrow-alt-circle-up"></i>
@include('livewire.includes._sort-icon', ['field' => 'seeders'])
</th>
<th
class="user-resurrections__leechers-header"
wire:click="sortBy('leechers')"
role="columnheader button"
title="{{ __('torrent.leechers') }}"
>
{{ __('torrent.leechers') }}
<i class="fas fa-arrow-alt-circle-down"></i>
@include('livewire.includes._sort-icon', ['field' => 'leechers'])
</th>
<th
class="user-resurrections__times-completed-header"
wire:click="sortBy('times_completed')"
role="columnheader button"
title="{{ __('torrent.completed') }}"
>
{{ __('torrent.completed') }}
<i class="fas fa-check-circle"></i>
@include('livewire.includes._sort-icon', ['field' => 'times_completed'])
</th>
<th
@@ -138,11 +141,10 @@
@endif
>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $resurrection->torrent->id]) }}"
>
<span class="text-green">
{{ $resurrection->torrent->seeders }}
</span>
{{ $resurrection->torrent->seeders }}
</a>
</td>
<td
@@ -155,11 +157,10 @@
@endif
>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $resurrection->torrent->id]) }}"
>
<span class="text-red">
{{ $resurrection->torrent->leechers }}
</span>
{{ $resurrection->torrent->leechers }}
</a>
</td>
<td
@@ -172,11 +173,10 @@
@endif
>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $resurrection->torrent->id]) }}"
>
<span class="text-orange">
{{ $resurrection->torrent->times_completed }}
</span>
{{ $resurrection->torrent->times_completed }}
</a>
</td>
<td class="user-resurrections__created-at">

View File

@@ -429,10 +429,11 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a href="{{ route('peers', ['id' => $history->torrent_id]) }}">
<span class="text-green">
{{ $history->seeders }}
</span>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $history->torrent_id]) }}"
>
{{ $history->seeders }}
</a>
</td>
<td
@@ -444,10 +445,11 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a href="{{ route('peers', ['id' => $history->torrent_id]) }}">
<span class="text-red">
{{ $history->leechers }}
</span>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $history->torrent_id]) }}"
>
{{ $history->leechers }}
</a>
</td>
<td
@@ -459,10 +461,11 @@
title="{{ __('torrent.completed') }}"
@endif
>
<a href="{{ route('history', ['id' => $history->torrent_id]) }}">
<span class="text-orange">
{{ $history->times_completed }}
</span>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $history->torrent_id]) }}"
>
{{ $history->times_completed }}
</a>
</td>
<td class="user-torrents__agent text-purple">

View File

@@ -249,10 +249,11 @@
title="{{ __('torrent.currently-seeding') }}"
@endif
>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class="text-green">
{{ $torrent->seeders }}
</span>
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td
@@ -264,10 +265,11 @@
title="{{ __('torrent.currently-leeching') }}"
@endif
>
<a href="{{ route('peers', ['id' => $torrent->id]) }}">
<span class="text-red">
{{ $torrent->leechers }}
</span>
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td
@@ -279,10 +281,11 @@
title="{{ __('torrent.completed') }}"
@endif
>
<a href="{{ route('history', ['id' => $torrent->id]) }}">
<span class="text-orange">
{{ $torrent->times_completed }}
</span>
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
<td class="user-uploads__tips">

View File

@@ -30,9 +30,24 @@
<tr>
<th>#</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th>{{ __('torrent.completed') }}</th>
<th
title="{{ __('torrent.seeders') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th
title="{{ __('torrent.leechers') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th
title="{{ __('torrent.completed') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-check-circle"></i>
</th>
</tr>
</thead>
<tbody>
@@ -44,9 +59,30 @@
{{ $torrent->name }}
</a>
</td>
<td>{{ $torrent->seeders }}</td>
<td>{{ $torrent->leechers }}</td>
<td>{{ $torrent->times_completed }}</td>
<td style="text-align: right">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
</tr>
@endforeach
</tbody>

View File

@@ -30,9 +30,24 @@
<tr>
<th>#</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th>{{ __('torrent.completed') }}</th>
<th
title="{{ __('torrent.seeders') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th
title="{{ __('torrent.leechers') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th
title="{{ __('torrent.completed') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-check-circle"></i>
</th>
</tr>
</thead>
<tbody>
@@ -44,9 +59,30 @@
{{ $torrent->name }}
</a>
</td>
<td>{{ $torrent->seeders }}</td>
<td>{{ $torrent->leechers }}</td>
<td>{{ $torrent->times_completed }}</td>
<td style="text-align: right">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
</tr>
@endforeach
</tbody>

View File

@@ -30,9 +30,24 @@
<tr>
<th>#</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th>{{ __('torrent.completed') }}</th>
<th
title="{{ __('torrent.seeders') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th
title="{{ __('torrent.leechers') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th
title="{{ __('torrent.completed') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-check-circle"></i>
</th>
</tr>
</thead>
<tbody>
@@ -44,9 +59,30 @@
{{ $torrent->name }}
</a>
</td>
<td>{{ $torrent->seeders }}</td>
<td>{{ $torrent->leechers }}</td>
<td>{{ $torrent->times_completed }}</td>
<td style="text-align: right">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
</tr>
@endforeach
</tbody>

View File

@@ -30,9 +30,24 @@
<tr>
<th>#</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th>{{ __('torrent.completed') }}</th>
<th
title="{{ __('torrent.seeders') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th
title="{{ __('torrent.leechers') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th
title="{{ __('torrent.completed') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-check-circle"></i>
</th>
</tr>
</thead>
<tbody>
@@ -44,9 +59,30 @@
{{ $torrent->name }}
</a>
</td>
<td>{{ $torrent->seeders }}</td>
<td>{{ $torrent->leechers }}</td>
<td>{{ $torrent->times_completed }}</td>
<td style="text-align: right">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
</tr>
@endforeach
</tbody>

View File

@@ -30,9 +30,24 @@
<tr>
<th>#</th>
<th>{{ __('torrent.torrent') }}</th>
<th>{{ __('torrent.seeders') }}</th>
<th>{{ __('torrent.leechers') }}</th>
<th>{{ __('torrent.completed') }}</th>
<th
title="{{ __('torrent.seeders') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-up"></i>
</th>
<th
title="{{ __('torrent.leechers') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-arrow-alt-circle-down"></i>
</th>
<th
title="{{ __('torrent.completed') }}"
style="text-align: right; min-width: 40px"
>
<i class="fas fa-check-circle"></i>
</th>
</tr>
</thead>
<tbody>
@@ -44,9 +59,30 @@
{{ $torrent->name }}
</a>
</td>
<td>{{ $torrent->seeders }}</td>
<td>{{ $torrent->leechers }}</td>
<td>{{ $torrent->times_completed }}</td>
<td style="text-align: right">
<a
class="torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->seeders }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
>
{{ $torrent->leechers }}
</a>
</td>
<td style="text-align: right">
<a
class="torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
>
{{ $torrent->times_completed }}
</a>
</td>
</tr>
@endforeach
</tbody>

View File

@@ -63,7 +63,7 @@
])
>
<a
class="torrent__seeders-link text-green"
class="torrent__seeders-link torrent__seeder-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
title="{{ $torrent->seeds_count }} {{ __('torrent.seeders') }}"
>
@@ -78,7 +78,7 @@
])
>
<a
class="torrent__leechers-link text-red"
class="torrent__leechers-link torrent__leecher-count"
href="{{ route('peers', ['id' => $torrent->id]) }}"
title="{{ $torrent->leeches_count }} {{ __('torrent.leechers') }}"
>
@@ -93,7 +93,7 @@
])
>
<a
class="torrent__completed-link text-info"
class="torrent__completed-link torrent__times-completed-count"
href="{{ route('history', ['id' => $torrent->id]) }}"
title="{{ $torrent->times_completed }} {{ __('torrent.times') }}"
>