mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 04:12:11 +02:00
Translate Announcement#index
This commit is contained in:
parent
3404b337eb
commit
1a3cc96809
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
- provide(:title, generate_title('Announcements'))
|
- provide(:title, generate_title(t(".title")))
|
||||||
.container-lg.container--main
|
.container-lg.container--main
|
||||||
- @announcements.each do |announcement|
|
- @announcements.each do |announcement|
|
||||||
.card
|
.card
|
||||||
|
@ -8,13 +8,13 @@
|
||||||
%small.text-muted= announcement.starts_at
|
%small.text-muted= announcement.starts_at
|
||||||
|
|
||||||
.d-flex.w-100
|
.d-flex.w-100
|
||||||
= link_to 'Edit', announcement_edit_path(id: announcement.id), class: 'btn btn-link text-primary'
|
= link_to t("voc.edit"), announcement_edit_path(id: announcement.id), class: 'btn btn-link text-primary'
|
||||||
= button_to 'Delete',
|
= button_to t("voc.delete"),
|
||||||
announcement_destroy_path(id: announcement.id),
|
announcement_destroy_path(id: announcement.id),
|
||||||
method: :delete,
|
method: :delete,
|
||||||
class: 'btn btn-link text-danger',
|
class: 'btn btn-link text-danger',
|
||||||
confirm: 'Are you sure you want to delete this announcement?'
|
confirm: t(".confirm")
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= link_to 'Add new', :announcement_new, class: 'btn btn-primary'
|
= link_to t(".new"), :announcement_new, class: 'btn btn-primary'
|
||||||
|
|
Loading…
Reference in a new issue