volunteers/app/views/stories/index.html.haml
2023-01-11 18:48:06 +02:00

28 lines
522 B
Plaintext

%h1 Listing stories
%table
%thead
%tr
%th Picture
%th Header
%th Text
%th Happened
%th
%th
%th
%tbody
- @stories.each do |story|
%tr
%td= story.picture
%td= story.header
%td= story.text
%td= story.happened
%td= link_to 'Show', story
%td= link_to 'Edit', edit_story_path(story)
%td= link_to 'Destroy', story, method: :delete, data: { confirm: 'Are you sure?' }
%br
= link_to 'New Story', new_story_path