mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Make UI consistent
This commit is contained in:
parent
2e1ed2733a
commit
e369d90e20
3 changed files with 7 additions and 2 deletions
|
@ -41,4 +41,4 @@
|
||||||
|
|
||||||
- if signed_in?
|
- if signed_in?
|
||||||
%ul.nav.navbar-nav.navbar-right
|
%ul.nav.navbar-nav.navbar-right
|
||||||
%li= link_to t(:log_out, user: current_admin_user), destroy_admin_user_session_path, method: :delete, class: 'navbar-link'
|
%li= link_to t('.sign_out'), destroy_admin_user_session_path, method: :delete, class: 'navbar-link'
|
||||||
|
|
5
config/locales/admin/base.en.yml
Normal file
5
config/locales/admin/base.en.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
en:
|
||||||
|
admin:
|
||||||
|
base:
|
||||||
|
menu:
|
||||||
|
sign_out: Sign out
|
|
@ -7,7 +7,7 @@ class AdminAreaLogoutTest < ActionDispatch::IntegrationTest
|
||||||
|
|
||||||
def test_logout
|
def test_logout
|
||||||
visit admin_root_url
|
visit admin_root_url
|
||||||
click_on 'Log out'
|
click_on 'Sign out'
|
||||||
|
|
||||||
assert_text 'Signed out successfully'
|
assert_text 'Signed out successfully'
|
||||||
assert_current_path new_admin_user_session_path
|
assert_current_path new_admin_user_session_path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue