diff --git a/controllers/blobController.php b/controllers/blobController.php index 01c0c4e..1a93711 100644 --- a/controllers/blobController.php +++ b/controllers/blobController.php @@ -7,7 +7,6 @@ $app->get('{repo}/blob/{branch}/{file}/', function($repo, $branch, $file) use($a $fileType = $app['utils']->getFileType($file); return $app['twig']->render('file.twig', array( - 'page' => 'files', 'file' => $file, 'fileType' => $fileType, 'blob' => $blob->output(), diff --git a/controllers/commitController.php b/controllers/commitController.php index beadfac..119821b 100644 --- a/controllers/commitController.php +++ b/controllers/commitController.php @@ -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, diff --git a/controllers/statsController.php b/controllers/statsController.php index 1058c07..666a90b 100644 --- a/controllers/statsController.php +++ b/controllers/statsController.php @@ -6,7 +6,6 @@ $app->get('{repo}/stats/{branch}', function($repo, $branch) use($app) { $authors = $repository->getAuthorStatistics(); return $app['twig']->render('stats.twig', array( - 'page' => 'stats', 'repo' => $repo, 'branch' => $branch, 'branches' => $repository->getBranches(), diff --git a/controllers/treeController.php b/controllers/treeController.php index 210e0ac..a3c2285 100644 --- a/controllers/treeController.php +++ b/controllers/treeController.php @@ -16,7 +16,6 @@ $app->get('{repo}/tree/{branch}/{tree}/', $treeController = function($repo, $bra } return $app['twig']->render('tree.twig', array( - 'page' => 'files', 'files' => $files->output(), 'repo' => $repo, 'branch' => $branch, diff --git a/views/blame.twig b/views/blame.twig index e942f56..3cf1586 100644 --- a/views/blame.twig +++ b/views/blame.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'commits' %} + {% block title %}GitList{% endblock %} {% block content %} diff --git a/views/commit.twig b/views/commit.twig index 7a9fdd5..ad28ba7 100644 --- a/views/commit.twig +++ b/views/commit.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'commits' %} + {% block title %}GitList{% endblock %} {% block content %} diff --git a/views/commits.twig b/views/commits.twig index be131c7..36e4faa 100644 --- a/views/commits.twig +++ b/views/commits.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'commits' %} + {% block title %}GitList{% endblock %} {% block content %} diff --git a/views/file.twig b/views/file.twig index 097e2b4..53617fe 100644 --- a/views/file.twig +++ b/views/file.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'files' %} + {% block title %}GitList{% endblock %} {% block content %} diff --git a/views/stats.twig b/views/stats.twig index d56d4ae..16f4682 100644 --- a/views/stats.twig +++ b/views/stats.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'stats' %} + {% block title %}GitList{% endblock %} {% block content %} diff --git a/views/tree.twig b/views/tree.twig index 705cd82..de7c652 100644 --- a/views/tree.twig +++ b/views/tree.twig @@ -1,5 +1,7 @@ {% extends 'layout_page.twig' %} +{% set page = 'files' %} + {% block title %}GitList{% endblock %} {% block content %}