Commit 1e9be918 authored by Jan Tore Morken's avatar Jan Tore Morken

Order torrent list by date

parent 02040a3b
Pipeline #24019301 passed with stage
in 5 minutes and 49 seconds
...@@ -59,7 +59,7 @@ helper 'chunks' => sub { ...@@ -59,7 +59,7 @@ helper 'chunks' => sub {
get '/' => sub { get '/' => sub {
my ($c) = @_; my ($c) = @_;
$c->stash->{'torrents'} = Mojo::Collection->new($c->myriad->torrents->active); $c->stash->{'torrents'} = Mojo::Collection->new($c->myriad->torrents->active->ascending('created'));
$c->stash->{'totalcompletes'} = $c->myriad->torrents->num_completes; $c->stash->{'totalcompletes'} = $c->myriad->torrents->num_completes;
$c->stash->{'totaltransfer'} = $c->myriad->torrents->transferred_bytes; $c->stash->{'totaltransfer'} = $c->myriad->torrents->transferred_bytes;
$c->stash->{'swarmspeed'} = $c->myriad->peers->active->swarm_speed; $c->stash->{'swarmspeed'} = $c->myriad->peers->active->swarm_speed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment