mirror of
https://git.cant.at/Madeorsk/PollVerlaine
synced 2024-12-21 15:17:54 +01:00
Add poll question in page title.
This commit is contained in:
parent
bf94ab7e1c
commit
4c3241349e
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Poll Verlaine</title>
|
||||
<title>Poll Verlaine<?= isset($title) ? " - ".$title : "" ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?= $VERLAINE["app_url"] ?>/static/css/main.css" />
|
||||
<?php if(isset($head)): ?>
|
||||
<?= $head ?>
|
||||
|
@ -38,7 +38,7 @@ Flight::route("HEAD|GET /polls/@id:[a-fA-F0-9]+", function ($id) {
|
||||
{
|
||||
Flight::render("poll", ["app_url" => $VERLAINE["app_url"], "poll" => $poll], "body_content");
|
||||
Flight::render("opengraph", ["poll" => $poll, "app_url" => $VERLAINE["app_url"]], "head");
|
||||
Flight::render("layout");
|
||||
Flight::render("layout", ["title" => $poll->title]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -107,7 +107,7 @@ Flight::route("HEAD|GET /polls/@id:[a-fA-F0-9]+/results", function ($id) {
|
||||
Flight::render("svg/results", ["poll" => $poll, "colors" => $VERLAINE["chart_colors"]], "results_chart");
|
||||
Flight::render("results", ["poll" => $poll, "chart_colors" => $VERLAINE["chart_colors"]], "body_content");
|
||||
Flight::render("opengraph", ["poll" => $poll, "app_url" => $VERLAINE["app_url"]], "head");
|
||||
Flight::render("layout");
|
||||
Flight::render("layout", ["title" => $poll->title]);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user