1
0
Fork 0

Temporary disable features

This commit is contained in:
Alex Kotov 2019-06-05 09:36:05 +05:00
parent 303f183832
commit 60c234f90c
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 4 additions and 18 deletions

View file

@ -11,20 +11,6 @@
<p class="h3 text-muted"><%= @account.nickname %></p>
<div class="mb-2">
<i class="fas fa-user-tag"></i>
<% if @account.person&.party_member? %>
<%= translate :member, scope: %i[helpers person_status] %>
<% elsif @account.person&.party_supporter? %>
<%= translate :supporter, scope: %i[helpers person_status] %>
<% elsif @account.person&.excluded_from_party? %>
<%= translate :excluded, scope: %i[helpers person_status] %>
<% else %>
<%= translate :not_in_party, scope: %i[helpers person_status] %>
<% end %>
</div>
<% if @account.person&.regional_office %>
<div class="mb-2">
<i class="fas fa-map-marker-alt"></i>

View file

@ -8,7 +8,7 @@ Feature: Account
Then I see text "kotovalexarian"
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Не относится к партии"
# And I see text "Не относится к партии"
Scenario: of a supporter
Given there is a supporter account with the following data:
@ -20,7 +20,7 @@ Feature: Account
Then I see text "kotovalexarian"
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Сторонник партии"
# And I see text "Сторонник партии"
And I see text "Москва"
Scenario: of a member
@ -33,7 +33,7 @@ Feature: Account
Then I see text "kotovalexarian"
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Член партии"
# And I see text "Член партии"
And I see text "Москва"
Scenario: of an excluded member
@ -46,5 +46,5 @@ Feature: Account
Then I see text "kotovalexarian"
And I see text "Alex Kotov"
And I see text "Hi there :)"
And I see text "Исключён из партии"
# And I see text "Исключён из партии"
And I see text "Москва"