From e7d666ee5f4d39fdbdcb22a52e843e11126a47fb Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 18 Aug 2019 05:27:24 +0500 Subject: [PATCH] Display ContactNetwork#contacts --- app/views/staffs/contact_networks/index.html.erb | 4 ++++ config/locales/activerecord/en.yml | 1 + config/locales/activerecord/ru.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/app/views/staffs/contact_networks/index.html.erb b/app/views/staffs/contact_networks/index.html.erb index 7947cd5..90ccb84 100644 --- a/app/views/staffs/contact_networks/index.html.erb +++ b/app/views/staffs/contact_networks/index.html.erb @@ -13,6 +13,9 @@ <%= ContactNetwork.human_attribute_name :name %> + + <%= ContactNetwork.human_attribute_name :contacts %> + @@ -22,6 +25,7 @@ <%= contact_network.codename %> <%= contact_network.name %> + <%= contact_network.contacts.count %> <% end %> diff --git a/config/locales/activerecord/en.yml b/config/locales/activerecord/en.yml index e651ee5..5a027b8 100644 --- a/config/locales/activerecord/en.yml +++ b/config/locales/activerecord/en.yml @@ -39,6 +39,7 @@ en: contact_network: id: ID codename: Codename + contacts: Contacts name: Name federal_subject: id: ID diff --git a/config/locales/activerecord/ru.yml b/config/locales/activerecord/ru.yml index 116d19d..2974195 100644 --- a/config/locales/activerecord/ru.yml +++ b/config/locales/activerecord/ru.yml @@ -39,6 +39,7 @@ ru: contact_network: id: ID codename: Кодовое имя + contacts: Контакты name: Название federal_subject: id: ID