diff --git a/app/views/staff/people/_nav_tabs.html.erb b/app/views/staff/people/_nav_tabs.html.erb new file mode 100644 index 0000000..cc0f91d --- /dev/null +++ b/app/views/staff/people/_nav_tabs.html.erb @@ -0,0 +1,17 @@ +
+ + + +
diff --git a/app/views/staff/people/show.html.erb b/app/views/staff/people/show.html.erb index ed63b8a..ea13510 100644 --- a/app/views/staff/people/show.html.erb +++ b/app/views/staff/people/show.html.erb @@ -1,4 +1,6 @@
+ <%= render partial: 'nav_tabs', locals: { person: @person, tab: :overview } %> +
<%= Person.human_attribute_name :first_name %>
<%= truncate @person.first_name %>
diff --git a/config/locales/nav_tabs/en.yml b/config/locales/nav_tabs/en.yml index 41cd959..d4842a6 100644 --- a/config/locales/nav_tabs/en.yml +++ b/config/locales/nav_tabs/en.yml @@ -3,6 +3,8 @@ en: passport: overview: Overview confirmations: Confirmations + person: + overview: Overview settings: credentials: Credentials profile: Public profile diff --git a/config/locales/nav_tabs/ru.yml b/config/locales/nav_tabs/ru.yml index fcfe436..b6ce87c 100644 --- a/config/locales/nav_tabs/ru.yml +++ b/config/locales/nav_tabs/ru.yml @@ -3,6 +3,8 @@ ru: passport: overview: Обзор confirmations: Подтверждения + person: + overview: Обзор settings: credentials: Данные для входа profile: Публичный профиль