Rename profile page in registrar area to account

This commit is contained in:
Artur Beljajev 2019-05-15 13:44:36 +03:00
parent 5e0eca22cf
commit 207c2a704c
10 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
class Registrar
class ProfileController < BaseController
class AccountController < BaseController
skip_authorization_check
helper_method :linked_users

View file

@ -182,7 +182,7 @@ class Registrar
if can?(:show, :poll)
registrar_root_path
else
registrar_profile_path
registrar_account_path
end
end

View file

@ -24,7 +24,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= link_to can?(:show, :poll) ? registrar_root_path : registrar_profile_path,
<%= link_to can?(:show, :poll) ? registrar_root_path : registrar_account_path,
class: 'navbar-brand' do %>
<%= t(:registrar_head_title) %>
<% if unstable_env.present? %>

View file

@ -1,4 +1,4 @@
<% current_user_presenter = UserPresenter.new(user: current_registrar_user, view: self) %>
<%= link_to current_user_presenter.login_with_role, registrar_profile_path, class: 'navbar-link' %>
<%= link_to current_user_presenter.login_with_role, registrar_account_path, class: 'navbar-link' %>
<span class="text-muted">|</span>
<%= link_to t('.sign_out'), destroy_registrar_user_session_path, method: :delete, class: 'navbar-link' %>