Display person country state
This commit is contained in:
parent
361779a121
commit
62d3c9102b
2 changed files with 10 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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 "Москва"
|
||||
|
|
Reference in a new issue