1
0
Fork 0

Display Person#regional_office

This commit is contained in:
Alex Kotov 2019-03-27 04:44:12 +05:00
parent e515853dd7
commit 3e3caa68ce
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 14 additions and 0 deletions

View file

@ -17,5 +17,17 @@
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
<dd><%= truncate @person.place_of_birth %></dd>
<dt><%= Person.human_attribute_name :regional_office %></dt>
<dd>
<% if @person.regional_office %>
<%= link_to(
@person.regional_office.country_state.display_name,
@person.regional_office.country_state,
) %>
<% else %>
<%= translate :none %>
<% end %>
</dd>
</dl>
</div>

View file

@ -1,2 +1,3 @@
en:
title: Libertarian party of Russia
none: None

View file

@ -1,2 +1,3 @@
ru:
title: Либертарианская партия России
none: Нет