mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 20:46:03 +01:00
14 lines
No EOL
649 B
Text
14 lines
No EOL
649 B
Text
- provide(:title, generate_title("Announcements"))
|
|
.container.container--main
|
|
.row
|
|
.col-md-12
|
|
= link_to "Add new", :announcement_new, class: "btn btn-default"
|
|
- @announcements.each do |announcement|
|
|
.panel.panel-default
|
|
.panel-heading
|
|
= announcement.starts_at
|
|
.panel-body
|
|
= announcement.content
|
|
.panel-footer
|
|
= button_to "Edit", announcement_edit_path(id: announcement.id), method: :get, class: 'btn btn-link'
|
|
= button_to "Delete", announcement_destroy_path(id: announcement.id), method: :delete, class: 'btn btn-link', confirm: 'Are you sure you want to delete this announcement?' |