diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 62522f6..b37965a 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -40,6 +40,12 @@ module ApplicationHelper
end
end
+ def there_is
+ tag.i class: 'text-muted' do
+ translate :there_is
+ end
+ end
+
def none
tag.i class: 'text-muted' do
translate :none
diff --git a/app/views/staffs/org_units/show.html.erb b/app/views/staffs/org_units/show.html.erb
index 9480412..e72bcf0 100644
--- a/app/views/staffs/org_units/show.html.erb
+++ b/app/views/staffs/org_units/show.html.erb
@@ -35,5 +35,18 @@
<%= @org_unit.parent_unit.name %>
<% end %>
+
+
<%= OrgUnit.human_attribute_name :resource %>
+
+ <% case @org_unit.resource %>
+ <% when nil %>
+ <%= none %>
+ <% when FederalSubject %>
+ <%= link_to @org_unit.resource.display_name,
+ federal_subject_path(@org_unit.resource) %>
+ <% else %>
+ <%= there_is %>
+ <% end %>
+
diff --git a/config/locales/activerecord/en.yml b/config/locales/activerecord/en.yml
index fffaeda..a1929ff 100644
--- a/config/locales/activerecord/en.yml
+++ b/config/locales/activerecord/en.yml
@@ -78,6 +78,7 @@ en:
short_name: Short name
name: Name
parent_unit: Parent
+ resource: Resource
org_unit_kind:
id: ID
codename: Codename
diff --git a/config/locales/activerecord/ru.yml b/config/locales/activerecord/ru.yml
index 75d76f0..3079638 100644
--- a/config/locales/activerecord/ru.yml
+++ b/config/locales/activerecord/ru.yml
@@ -78,6 +78,7 @@ ru:
short_name: Короткое развание
name: Название
parent_unit: Родитель
+ resource: Ресурс
org_unit_kind:
id: ID
codename: Кодовое имя
diff --git a/config/locales/other/en.yml b/config/locales/other/en.yml
index a7ede74..61009fa 100644
--- a/config/locales/other/en.yml
+++ b/config/locales/other/en.yml
@@ -1,6 +1,7 @@
en:
title: Libertarian party of Russia
staff_services: Staff services
+ there_is: There is
none: None
current: current
:yes: Yes
diff --git a/config/locales/other/ru.yml b/config/locales/other/ru.yml
index 57600a7..1e84936 100644
--- a/config/locales/other/ru.yml
+++ b/config/locales/other/ru.yml
@@ -1,6 +1,7 @@
ru:
title: Либертарианская партия России
staff_services: Сервисы для сотрудников
+ there_is: Есть
none: Нет
current: текущее
:yes: Да