X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FController%2FGithub%2FRepo.php;h=f194d8e726b91ac52294e1651a542b95d0d8ea4e;hb=930d06a96fa24317f053fecb8569aacaa69a0778;hp=02ab7a94bd1e4202bb6a82b745969a115a68c370;hpb=7f4e70ea88d180cfa25f25f3846f842c5958ebf4;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Repo.php b/app/Controller/Github/Repo.php index 02ab7a9..f194d8e 100644 --- a/app/Controller/Github/Repo.php +++ b/app/Controller/Github/Repo.php @@ -17,12 +17,21 @@ class Repo extends Github } catch (\app\Github\Exception $exception) { $this->app->getView()->addData(compact("exception", "owner", "name")); } + + if (($modal = $this->app->getRequest()->getQuery("modal"))) { + $this->app->getView()->addData(compact("modal") + [ + "action" => $this->app->getRequest()->getQuery($modal) + ]); + } + $this->app->display("github/repo"); } } function repoCallback($repo, $links) { - $this->app->getView()->addData(compact("repo")); + $this->app->getView()->addData(compact("repo") + [ + "title" => "Github: {$repo->name}" + ]); settype($repo->tags, "object"); $this->github->fetchHooks($repo->full_name, function($hooks) use($repo) { $repo->hooks = $hooks;