diff --git a/app/views/staff/people/show.html.erb b/app/views/staff/people/show.html.erb index 0b3a141..ed63b8a 100644 --- a/app/views/staff/people/show.html.erb +++ b/app/views/staff/people/show.html.erb @@ -17,5 +17,17 @@
<%= Person.human_attribute_name :place_of_birth %>
<%= truncate @person.place_of_birth %>
+ +
<%= Person.human_attribute_name :regional_office %>
+
+ <% if @person.regional_office %> + <%= link_to( + @person.regional_office.country_state.display_name, + @person.regional_office.country_state, + ) %> + <% else %> + <%= translate :none %> + <% end %> +
diff --git a/config/locales/en.yml b/config/locales/en.yml index 32b8516..db7f6b6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,2 +1,3 @@ en: title: Libertarian party of Russia + none: None diff --git a/config/locales/ru.yml b/config/locales/ru.yml index c9a6af7..b3ebb4f 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -1,2 +1,3 @@ ru: title: Либертарианская партия России + none: Нет