diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index b0fef29..32b1bee 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -29,6 +29,7 @@
+ <%= render partial: 'rel_root', locals: { person: @account.person } %>
diff --git a/app/views/application/_rel_hierarchy.html.erb b/app/views/application/_rel_hierarchy.html.erb new file mode 100644 index 0000000..2302acb --- /dev/null +++ b/app/views/application/_rel_hierarchy.html.erb @@ -0,0 +1,23 @@ + + + <% if policy([:staff, relationship.org_unit]).show? %> + <%= link_to relationship.org_unit.name, [:staff, relationship.org_unit] %> + <% else %> + <%= relationship.org_unit.name %> + <% end %> + + +
+ + <%= relationship.status.name %> + <%= translate :since %> + <%= localize relationship.from_date %> +
+ + diff --git a/app/views/application/_rel_root.html.erb b/app/views/application/_rel_root.html.erb new file mode 100644 index 0000000..8608770 --- /dev/null +++ b/app/views/application/_rel_root.html.erb @@ -0,0 +1,7 @@ + diff --git a/config/locales/other/en.yml b/config/locales/other/en.yml index 5302ec4..a7ede74 100644 --- a/config/locales/other/en.yml +++ b/config/locales/other/en.yml @@ -13,3 +13,4 @@ en: hello: Hello new_sign_in: New sign in to your account sidekiq: Sidekiq + since: since diff --git a/config/locales/other/ru.yml b/config/locales/other/ru.yml index cf734d3..57600a7 100644 --- a/config/locales/other/ru.yml +++ b/config/locales/other/ru.yml @@ -13,3 +13,4 @@ ru: hello: Здравствуйте new_sign_in: Произведён вход в ваш аккаунт sidekiq: Sidekiq + since: с