diff --git a/templates/app/controllers/user/user_application_controller.rb b/templates/app/controllers/user/user_application_controller.rb index 6e56933..6e02da8 100644 --- a/templates/app/controllers/user/user_application_controller.rb +++ b/templates/app/controllers/user/user_application_controller.rb @@ -2,6 +2,7 @@ class User::UserApplicationController < ActionController::Base # layout 'user/application' + layout 'application' before_action :authenticate_user! self.responder = ApplicationResponder respond_to :html, :json diff --git a/templates/app/views/hq/dashboard/index.html.haml b/templates/app/views/hq/dashboard/index.html.haml index ebd3d53..75d7d4e 100644 --- a/templates/app/views/hq/dashboard/index.html.haml +++ b/templates/app/views/hq/dashboard/index.html.haml @@ -3,6 +3,6 @@ .row .col-lg-12 .alert.alert-info - = t('view.hello', email: current_admin.email) + = t('view.hello', user: current_admin.email) = link_to t('navbar.sign_out'), destroy_admin_session_path, method: :delete, class: 'btn btn-danger' = link_to t('navbar.edit_login_info'), edit_admin_registration_path, class: 'btn btn-primary' \ No newline at end of file diff --git a/templates/app/views/user/dashboard/index.html.haml b/templates/app/views/user/dashboard/index.html.haml index 263c4e8..e5fa3a7 100644 --- a/templates/app/views/user/dashboard/index.html.haml +++ b/templates/app/views/user/dashboard/index.html.haml @@ -3,6 +3,6 @@ .row .col-lg-12 .alert.alert-info - = t('view.hello', email: current_user.email) + = t('view.hello', user: current_user.email) = link_to t('navbar.sign_out'), destroy_user_session_path, method: :delete, class: 'btn btn-danger' = link_to t('navbar.edit_login_info'), edit_user_registration_path, class: 'btn btn-primary' \ No newline at end of file diff --git a/templates/config/locales/view.tr.yml b/templates/config/locales/view.tr.yml index b476a62..48b88dc 100644 --- a/templates/config/locales/view.tr.yml +++ b/templates/config/locales/view.tr.yml @@ -20,6 +20,7 @@ tr: reset: Temizle quick_search: Arama yap.. reload: Yeniden yükle + hello: Merhaba %{user} there_is_no_data: Hiç %{resource} eklenmemiş. navbar: settings: Ayarlar