moved the page variable to the templates (belongs to the view)

This commit is contained in:
Fabien Potencier
2012-07-06 23:02:33 +02:00
parent cddca4683a
commit de1cf7320f
10 changed files with 12 additions and 7 deletions

View File

@@ -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,