Module: SolidusAdmin::LayoutHelper
- Defined in:
- app/helpers/solidus_admin/layout_helper.rb
Overview
Helpers for the admin layout
Instance Method Summary collapse
- #current_locale(backend: I18n) ⇒ Symbol
-
#solidus_admin_title(store_name: current_store.name, controller_name: self.controller_name) ⇒ String
HTML title.
Instance Method Details
#current_locale(backend: I18n) ⇒ Symbol
7 8 9 |
# File 'app/helpers/solidus_admin/layout_helper.rb', line 7 def current_locale(backend: I18n) backend.locale end |
#solidus_admin_title(store_name: current_store.name, controller_name: self.controller_name) ⇒ String
Returns HTML title.
14 15 16 |
# File 'app/helpers/solidus_admin/layout_helper.rb', line 14 def solidus_admin_title(store_name: current_store.name, controller_name: self.controller_name) "#{store_name} - #{t("solidus_admin.#{controller_name}.title")}" end |