Correct messages i18n

This commit is contained in:
wvengen 2016-03-07 22:17:18 +01:00
parent 5d9e1845b7
commit 80ab359860
8 changed files with 25 additions and 34 deletions

View file

@ -4,8 +4,8 @@
%table.table.table-striped
%thead
%tr
%th= t '.name'
%th= t '.members'
%th= Messagegroup.human_attribute_name :name
%th= Messagegroup.human_attribute_name :user_tokens
%th= t 'ui.actions'
%tbody
- for messagegroup in @messagegroups

View file

@ -2,5 +2,5 @@
%section= render 'shared/group', group: @messagegroup
= link_to t('ui.edit'), edit_admin_messagegroup_path(@messagegroup), class: 'btn'
= link_to t('ui.delete'), [:admin, @messagegroup], :data => {:confirm => t('.confirm')}, :method => :delete, class: 'btn btn-danger'
= link_to t('ui.delete'), [:admin, @messagegroup], :data => {:confirm => t('ui.confirm_delete', name: @messagegroup.name)}, :method => :delete, class: 'btn btn-danger'
= link_to t('.send_message'), new_message_path(:message => {:group_id => @messagegroup.id}), class: 'btn'