} 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;