mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Rename profile page in registrar area to account
This commit is contained in:
parent
5e0eca22cf
commit
207c2a704c
10 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
class Registrar
|
||||
class ProfileController < BaseController
|
||||
class AccountController < BaseController
|
||||
skip_authorization_check
|
||||
|
||||
helper_method :linked_users
|
|
@ -182,7 +182,7 @@ class Registrar
|
|||
if can?(:show, :poll)
|
||||
registrar_root_path
|
||||
else
|
||||
registrar_profile_path
|
||||
registrar_account_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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? %>
|
||||
|
|
|
@ -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' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue