From 9b4bb18924d0cb06370491c311dcb434379e43ae Mon Sep 17 00:00:00 2001 From: Torsten Date: Thu, 2 Feb 2023 18:13:53 +0200 Subject: [PATCH] add member link to story --- app/views/stories/_half.haml | 3 ++- app/views/stories/_pic.haml | 3 ++- app/views/stories/_text.haml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/stories/_half.haml b/app/views/stories/_half.haml index dad801d..5c44c2c 100644 --- a/app/views/stories/_half.haml +++ b/app/views/stories/_half.haml @@ -7,6 +7,7 @@ = story.header %h4.text-xl.mt-10.md:text-2xl = distance_of_time_in_words_to_now story.happened - ago + ago, by + = link_to story.member.name , main_app.member_path(story.member) , class: :underline .mt-8{ prose_classes } = markdown(story.text) diff --git a/app/views/stories/_pic.haml b/app/views/stories/_pic.haml index 15fa325..a00e784 100644 --- a/app/views/stories/_pic.haml +++ b/app/views/stories/_pic.haml @@ -8,6 +8,7 @@ = story.header %h4.text-xl.mt-4.lg:mt-8.md:text-2xl = distance_of_time_in_words_to_now story.happened - ago + ago, by + = link_to story.member.name , main_app.member_path(story.member) , class: :underline .mt-3{ prose_classes } = markdown(story.text) diff --git a/app/views/stories/_text.haml b/app/views/stories/_text.haml index 13a1024..15b95aa 100644 --- a/app/views/stories/_text.haml +++ b/app/views/stories/_text.haml @@ -5,7 +5,8 @@ = story.header .text-xl.pb-6{ prose_classes } = distance_of_time_in_words_to_now story.happened - ago + ago, by + = link_to story.member.name , main_app.member_path(story.member) , class: :underline .max-w-full.mt-4.gap-16.columns-1.md:columns-2.lg:columns-3.xl:columns-4{ prose_classes } = picture_for( story , "h-56 w-full object-cover sm:h-full") = markdown(story.text)