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

17 lines
417 B
Plaintext
Raw Normal View History

2023-01-11 20:52:58 +02:00
= paginate @stories
2023-01-24 00:22:29 +02:00
2023-01-25 22:46:30 +02:00
.flex.justify-end.mr-10
2023-01-24 00:22:29 +02:00
= sort_link(@q, :happened ,class: 'flex flex-nowrap text-md')
.border-r-4.mx-4
= sort_link(@q, :created_at , class: 'flex flex-nowrap text-md')
2023-01-11 20:52:58 +02:00
- @stories.each do |story|
= render_story(story)
2023-01-11 18:48:06 +02:00
%br
2023-01-18 12:40:19 +02:00
.flex.ml-20
= link_to new_story_path do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
New Story