different templates depending on story text length

This commit is contained in:
2023-01-11 21:14:36 +02:00
parent 0055de6c83
commit efa95e82c7
7 changed files with 42 additions and 4 deletions

View File

@ -32,4 +32,8 @@
Sign out
- @member.stories.each do |story|
=render "stories/inline" , story: story
=render_story( story )
.flex.justify-around
= link_to edit_story_path(story) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Edit Story