Skip to content

Commit

Permalink
Merge pull request #3010 from Roardom/add-peers-history-tab
Browse files Browse the repository at this point in the history
(Add) Torrent peers/history tabs
  • Loading branch information
HDVinnie authored Aug 1, 2023
2 parents 0546343 + 900be86 commit 12382d6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/views/torrent/history.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
</li>
@endsection

@section('nav-tabs')
<li class="nav-tabV2">
<a class="nav-tab__link" href="{{ route('peers', ['id' => $torrent]) }}">
{{ __('torrent.peers') }}
</a>
</li>
<li class="nav-tab--active">
<a class="nav-tab--active__link" href="{{ route('history', ['id' => $torrent]) }}">
{{ __('torrent.history') }}
</a>
</li>
@endsection

@section('content')
<section class="panelV2">
<header class="panel__header">
Expand Down
13 changes: 13 additions & 0 deletions resources/views/torrent/peers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
</li>
@endsection

@section('nav-tabs')
<li class="nav-tab--active">
<a class="nav-tab--active__link" href="{{ route('peers', ['id' => $torrent]) }}">
{{ __('torrent.peers') }}
</a>
</li>
<li class="nav-tabV2">
<a class="nav-tab__link" href="{{ route('history', ['id' => $torrent]) }}">
{{ __('torrent.history') }}
</a>
</li>
@endsection

@section('main')
<section class="panelV2">
<h2 class="panel__heading">{{ __('torrent.torrent') }} {{ __('torrent.peers') }}</h2>
Expand Down

0 comments on commit 12382d6

Please sign in to comment.