Skip to content

Commit

Permalink
Merge pull request #3018 from Roardom/fix-peers-seeder-strict-type
Browse files Browse the repository at this point in the history
(Fix) Peer seeder strict type
  • Loading branch information
HDVinnie committed Aug 2, 2023
2 parents 1b04dd3 + 6a8af71 commit 981f3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/views/livewire/user-active.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class="user-peers__checkbox"
@endif
<td class="user-active__seeding">
@if ($active->active)
@if ($active->seeder === 1)
@if ($active->seeder)
<i class="{{ config('other.font-awesome') }} text-green fa-check" title="{{ __('torrent.seeding') }}"></i>
@else
<i class="{{ config('other.font-awesome') }} text-red fa-times" title="Not {{ __('torrent.seeding') }}"></i>
Expand Down
6 changes: 2 additions & 4 deletions resources/views/torrent/peers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@
</td>
<td class="{{ $peer->active ? ($peer->seeder ? 'text-green' : 'text-red') : 'text-orange' }}">
@if ($peer->active)
@if ($peer->seeder == 0)
{{ __('torrent.leecher') }}
@elseif ($peer->seeder == 1)
@if ($peer->seeder)
{{ __('torrent.seeder') }}
@else
{{ __('common.error') }}
{{ __('torrent.leecher') }}
@endif
@else
Inactive
Expand Down

0 comments on commit 981f3e1

Please sign in to comment.