From 6028768c2f161ed5924d4bc9245cd3dac84b41de Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 10 Dec 2023 11:40:05 +0200 Subject: [PATCH] define anchors as links _fragment --- templates/default/module/rooms.html.twig | 2 +- templates/default/room/index.html.twig | 4 ++-- templates/default/room/index.rss.twig | 4 ++-- templates/default/room/list.html.twig | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/default/module/rooms.html.twig b/templates/default/module/rooms.html.twig index 9f1003a..7d2d262 100644 --- a/templates/default/module/rooms.html.twig +++ b/templates/default/module/rooms.html.twig @@ -8,7 +8,7 @@ {% if namespace == form.namespace.value %} {{ namespace | keva_namespace_value }} {% else %} - {{ namespace | keva_namespace_value }} + {{ namespace | keva_namespace_value }} {% endif %} diff --git a/templates/default/room/index.html.twig b/templates/default/room/index.html.twig index 2128f45..783dd62 100644 --- a/templates/default/room/index.html.twig +++ b/templates/default/room/index.html.twig @@ -14,9 +14,9 @@ {% endif %} • - {{ post.time | format_ago }} + {{ post.time | format_ago }} • - {{ 'reply' | trans }} + {{ 'reply' | trans }} {% if post.pending %} diff --git a/templates/default/room/index.rss.twig b/templates/default/room/index.rss.twig index a27862c..b7c8387 100644 --- a/templates/default/room/index.rss.twig +++ b/templates/default/room/index.rss.twig @@ -9,8 +9,8 @@ #{{ post.id }} @{{ post.user }} {{ post.time | date('D, d M Y h:i:s O') }} - {{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }} - {{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }} + {{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.id }) }} + {{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.id }) }} {{ post.message | striptags | markdown_to_html | striptags | trim }} {% endfor %} diff --git a/templates/default/room/list.html.twig b/templates/default/room/list.html.twig index 96c7a05..370ded4 100644 --- a/templates/default/room/list.html.twig +++ b/templates/default/room/list.html.twig @@ -7,7 +7,7 @@
  • - {{ room.namespace | keva_namespace_value }} + {{ room.namespace | keva_namespace_value }} {{ room.total }}