mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-01-22 15:33:01 +01:00
moved the page variable to the templates (belongs to the view)
This commit is contained in:
@@ -12,7 +12,6 @@ $app->get('{repo}/commits/{branch}', function($repo, $branch) use($app) {
|
||||
}
|
||||
|
||||
return $app['twig']->render('commits.twig', array(
|
||||
'page' => 'commits',
|
||||
'pager' => $pager,
|
||||
'repo' => $repo,
|
||||
'branch' => $branch,
|
||||
@@ -37,7 +36,6 @@ $app->get('{repo}/commits/{branch}/{file}/', function($repo, $branch, $file) use
|
||||
}
|
||||
|
||||
return $app['twig']->render('commits.twig', array(
|
||||
'page' => 'commits',
|
||||
'pager' => $pager,
|
||||
'repo' => $repo,
|
||||
'branch' => $branch,
|
||||
@@ -54,7 +52,6 @@ $app->get('{repo}/commit/{commit}/', function($repo, $commit) use($app) {
|
||||
$commit = $repository->getCommit($commit);
|
||||
|
||||
return $app['twig']->render('commit.twig', array(
|
||||
'page' => 'commits',
|
||||
'branch' => 'master',
|
||||
'repo' => $repo,
|
||||
'commit' => $commit,
|
||||
@@ -68,7 +65,6 @@ $app->get('{repo}/blame/{branch}/{file}/', function($repo, $branch, $file) use($
|
||||
$blames = $repository->getBlame("$branch -- $file");
|
||||
|
||||
return $app['twig']->render('blame.twig', array(
|
||||
'page' => 'commits',
|
||||
'file' => $file,
|
||||
'repo' => $repo,
|
||||
'branch' => $branch,
|
||||
|
||||
Reference in New Issue
Block a user