Display message for no relationships
This commit is contained in:
parent
6bb35fd444
commit
91fe4757b3
3 changed files with 19 additions and 9 deletions
|
@ -1,9 +1,13 @@
|
|||
<ul>
|
||||
<% Relationship.where(person: person,
|
||||
parent_rel: nil).each do |relationship| %>
|
||||
<li>
|
||||
<%= render partial: 'people/rel_hierarchy',
|
||||
locals: { relationship: relationship } %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% if Relationship.where(person: person, parent_rel: nil).empty? %>
|
||||
<%= translate '.no_relations' %>
|
||||
<% else %>
|
||||
<ul>
|
||||
<% Relationship.where(person: person,
|
||||
parent_rel: nil).each do |relationship| %>
|
||||
<li>
|
||||
<%= render partial: 'people/rel_hierarchy',
|
||||
locals: { relationship: relationship } %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
|
|
@ -16,6 +16,9 @@ en:
|
|||
If this was you, you can ignore this alert. If you suspect
|
||||
any suspicious activity on your account, please change your password
|
||||
and enable two-factor authentication
|
||||
people:
|
||||
rel_root:
|
||||
no_relations: Doesn't have a history of relationships to party.
|
||||
staffs:
|
||||
people:
|
||||
show:
|
||||
|
|
|
@ -17,6 +17,9 @@ ru:
|
|||
Если это были вы, можете проигнорировать это предупреждение.
|
||||
Если вы заметили подозрительную активность вашего аккаунта, пожалуйста
|
||||
измените пароль и включите двухфакторную аутентификацию
|
||||
people:
|
||||
rel_root:
|
||||
no_relations: Не имеет истории взаимоотношений с партией.
|
||||
settings:
|
||||
people:
|
||||
show:
|
||||
|
|
Reference in a new issue