1
0
Fork 0

Display person country state

This commit is contained in:
Alex Kotov 2019-03-25 00:09:57 +05:00
parent 361779a121
commit 62d3c9102b
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 10 additions and 0 deletions

View file

@ -25,6 +25,13 @@
<% end %>
</div>
<% if @account.person&.regional_office %>
<div class="mb-2">
<i class="fas fa-map-marker-alt"></i>
<%= @account.person.regional_office.country_state.name %>
</div>
<% end %>
<% if @account.biography %>
<p><%= @account.biography %></p>
<% end %>

View file

@ -21,6 +21,7 @@ Feature: Account
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Сторонник партии"
And I see text "Москва"
Scenario: of a member
Given there is a member account with the following data:
@ -33,6 +34,7 @@ Feature: Account
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Член партии"
And I see text "Москва"
Scenario: of an excluded member
Given there is an excluded member account with the following data:
@ -45,3 +47,4 @@ Feature: Account
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Исключён из партии"
And I see text "Москва"