Skip to content

Commit

Permalink
Merge branch 'release/0.15.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Mar 23, 2017
2 parents d31e074 + 1a4b7b5 commit a7ecd6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/delivery/campaign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def fill_audiences?
end

def fill_receivers!
(contacts.map(&:id) | receivers.map(&:user_id)).each do |user_id|
(contacts.map(&:id) - receivers.map(&:user_id)).each do |user_id|
::Delivery::Receiver.create! user_id: user_id, campaign_id: id
end
end
Expand Down
4 changes: 4 additions & 0 deletions app/views/web/admin/delivery/campaigns/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@
= audience_path audience
%td
= link_to fa_icon(:remove), admin_delivery_audience_path(audience), method: :delete, class: 'btn btn-danger'
%h4
%b
= t('activerecord.models.delivery/receiver').pluralize(:ru)
= @campaign.receivers.count
1 change: 1 addition & 0 deletions config/locales/ru/models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ru:
delivery/campaign: Кампания
delivery/audience: Целевая аудитория
delivery/contact_email: Электронная почта
delivery/receiver: Получатель
tag: Тег
oauth/app: Приложение
test_paper: Тест
Expand Down

0 comments on commit a7ecd6f

Please sign in to comment.