Retrospring/app/views/announcement/index.haml

21 lines
733 B
Plaintext
Raw Normal View History

2022-01-24 12:48:03 -08:00
- provide(:title, generate_title(t(".title")))
.container-lg.container--main
2020-05-10 05:29:10 -07:00
- @announcements.each do |announcement|
.card
.card-body
.d-flex.w-100.justify-content-between
%p.mb-3= announcement.content
%small.text-muted= announcement.starts_at
.d-flex.w-100
2022-01-24 13:00:31 -08:00
= link_to t("voc.edit"), announcement_edit_path(id: announcement.id), class: "btn btn-link text-primary"
2022-01-24 12:48:03 -08:00
= button_to t("voc.delete"),
2020-05-10 05:29:10 -07:00
announcement_destroy_path(id: announcement.id),
method: :delete,
2022-01-24 13:00:31 -08:00
class: "btn btn-link text-danger",
2022-07-30 06:17:31 -07:00
confirm: t(".confirm_delete")
2020-05-10 05:29:10 -07:00
.row
.col-md-12
2022-01-24 13:00:31 -08:00
= link_to t(".new"), :announcement_new, class: "btn btn-primary"