diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index b4d7a79..c984e87 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -28,12 +28,6 @@ <% end %> - <% if policy([:staff, @account]).show? %> -
- <%= link_to translate('.staff_page'), [:staff, @account] %> -
- <% end %> -
<% if @account.biography %> diff --git a/app/views/staffs/accounts/show.html.erb b/app/views/staffs/accounts/show.html.erb index 4433a7e..eda4c49 100644 --- a/app/views/staffs/accounts/show.html.erb +++ b/app/views/staffs/accounts/show.html.erb @@ -23,12 +23,6 @@ <% end %> - <% if policy(@account).show? %> -
- <%= link_to translate('.public_page'), @account %> -
- <% end %> -
<%= Account.human_attribute_name :id %>
<%= @account.id %>
diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index fc273a8..80d5288 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -1,7 +1,4 @@ en: - accounts: - show: - staff_page: Staff page home: show: join: Join @@ -10,7 +7,3 @@ en: We stand for a free market and freedom of government intervention in the economy, for the principle of self-ownership and self-value of the human person. - staffs: - accounts: - show: - public_page: Public page diff --git a/config/locales/views/ru.yml b/config/locales/views/ru.yml index 0b5b11a..05036bc 100644 --- a/config/locales/views/ru.yml +++ b/config/locales/views/ru.yml @@ -1,7 +1,4 @@ ru: - accounts: - show: - staff_page: Страница для сотрудников home: show: join: Вступить @@ -10,7 +7,3 @@ ru: Мы выступаем за свободный рынок и государственное невмешательство в экономику, за принцип самопринадлежности и самоценности человеческой личности. - staffs: - accounts: - show: - public_page: Публичная страница