mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 21:46:04 +01:00
be1afe01e9
This removes the horrible side margins on portrait tablets
20 lines
755 B
Text
20 lines
755 B
Text
- provide(:title, generate_title('Announcements'))
|
|
.container-lg.container--main
|
|
- @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
|
|
= link_to 'Edit', announcement_edit_path(id: announcement.id), class: 'btn btn-link text-primary'
|
|
= button_to 'Delete',
|
|
announcement_destroy_path(id: announcement.id),
|
|
method: :delete,
|
|
class: 'btn btn-link text-danger',
|
|
confirm: 'Are you sure you want to delete this announcement?'
|
|
|
|
.row
|
|
.col-md-12
|
|
= link_to 'Add new', :announcement_new, class: 'btn btn-primary'
|