From ee02589df60da480a10e5719a877bd37cec90eb2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 3 Apr 2025 16:35:29 +0200 Subject: [PATCH] Change title for schedule/scheduled pages --- src/Controller/FediPlanController.php | 3 ++- templates/fediplan/schedule.html.twig | 2 +- templates/fediplan/scheduled.html.twig | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Controller/FediPlanController.php b/src/Controller/FediPlanController.php index cba1ca4..188b50a 100644 --- a/src/Controller/FediPlanController.php +++ b/src/Controller/FediPlanController.php @@ -274,7 +274,8 @@ class FediPlanController extends AbstractController )] public function scheduled(): Response { - return $this->render("fediplan/scheduled.html.twig"); + $user = $this->getUser(); + return $this->render("fediplan/scheduled.html.twig", [ 'instance' => $user->getInstance(),]); } diff --git a/templates/fediplan/schedule.html.twig b/templates/fediplan/schedule.html.twig index 1ec0690..cfb2307 100644 --- a/templates/fediplan/schedule.html.twig +++ b/templates/fediplan/schedule.html.twig @@ -5,7 +5,7 @@ {% block content %} {% set instanceConfiguration = app.session.get("instance").getConfiguration() %} {% include 'nav.html.twig' %} -

Schedule for {{ app.user.avatar }} {{ convertAccountEmoji(app.user, app.user.displayName) | raw }} (@{{ app.user.acct}}@{{ instance }})

+

{{ 'common.schedule'|trans }} {{ app.user.avatar }} {{ convertAccountEmoji(app.user, app.user.displayName) | raw }} @{{ app.user.acct}}@{{ instance }}

{% for type, messages in app.session.flashbag.all() %} {% for message in messages %} diff --git a/templates/fediplan/scheduled.html.twig b/templates/fediplan/scheduled.html.twig index dac6a50..f699e9d 100644 --- a/templates/fediplan/scheduled.html.twig +++ b/templates/fediplan/scheduled.html.twig @@ -4,11 +4,11 @@ {% block content %} {% include 'nav.html.twig' %} -

{{ 'common.scheduled'|trans }}

+ {% set instanceConfiguration = app.session.get("instance").getConfiguration() %} +

{{ 'common.scheduled'|trans }} {{ app.user.avatar }} {{ convertAccountEmoji(app.user, app.user.displayName) | raw }} @{{ app.user.acct}}@{{ instance }}

- -
+