From 81efb8aa973552766b13dabb077ad8e35ba3f2e4 Mon Sep 17 00:00:00 2001 From: "aurian.jault" Date: Thu, 13 Jun 2024 09:01:22 +0200 Subject: [PATCH] Adding link to profil from post's pic --- public/css/components/post.css | 5 +++++ templates/post/post.html.twig | 6 ++++-- templates/post/post_mini.html.twig | 14 ++++++++------ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/public/css/components/post.css b/public/css/components/post.css index 6f67aa8..af6f77e 100644 --- a/public/css/components/post.css +++ b/public/css/components/post.css @@ -32,4 +32,9 @@ p { hr { color: black; +} + +a { + text-decoration: none; + color: black; } \ No newline at end of file diff --git a/templates/post/post.html.twig b/templates/post/post.html.twig index 210868b..9ca843c 100644 --- a/templates/post/post.html.twig +++ b/templates/post/post.html.twig @@ -10,8 +10,10 @@
- - {{ post.profil.name }} + + + + {{ post.profil.name }} {# - {{ post.dateCreated }} #} - Il y a 3 jours
diff --git a/templates/post/post_mini.html.twig b/templates/post/post_mini.html.twig index b70ceb4..ca75a66 100644 --- a/templates/post/post_mini.html.twig +++ b/templates/post/post_mini.html.twig @@ -1,17 +1,19 @@ {% block body %} -
- - {{ post.profil.name }} + + + + {{ post.profil.name }} {# - {{ post.dateCreated }} #} - Il y a 3 jours
-

{{ post.title }}

-

{{ post.text|u.truncate(150, true, '...') }}

+ +

{{ post.title }}

+

{{ post.text|u.truncate(150, true, '...') }}

+
- {% endblock %}