% # API my $api = gitprep_api; # Parameters my $user = param('user'); my $project = param('project'); # Git my $git = $self->app->git; # Pull requests my $pull_requests = app->dbi->model('pull_request')->select(where => {open => 1})->all; # Open count my $open_count = app->dbi->model('pull_request')->select('count(*)', where => {open => 1})->value; # Close count my $close_count = app->dbi->model('pull_request')->select('count(*)', where => {open => 0})->value; %> % layout 'common', title => "Pull Requests Tags \x{30fb} $user/$project"; %= include '/include/header';