volunteers/app/views/stories/index.html.haml

28 lines
522 B
Plaintext
Raw Normal View History

2023-01-11 17:48:06 +01:00
%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