1
0
mirror of https://git.cant.at/Madeorsk/PollVerlaine synced 2024-12-22 01:57:54 +01:00

Add poll question in page title.

This commit is contained in:
Madeorsk 2019-02-24 14:52:23 +01:00
parent bf94ab7e1c
commit 4c3241349e
2 changed files with 3 additions and 3 deletions

View File

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

View File

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