Sha256: 20e50814a1122523f528eacc31560d5c2b5b8ac56c43c4a69d114fe4663a5a95
Contents?: true
Size: 887 Bytes
Versions: 6
Compression:
Stored size: 887 Bytes
Contents
module Tramway module Admin module ApplicationHelper include ::FontAwesome::Rails::IconHelper include AuthManagment include AdditionalButtonsBuilder include RussianCasesHelper include ::Tramway::Admin::RecordsHelper include ::Tramway::Admin::SingletonHelper include ::Tramway::Collections::Helper def title(page_title = default_title) title_text = "#{page_title} | #{t('application.name')}" content_for(:title) { title_text } end def default_title t('.title') end def page_title(action, model_name) t("helpers.actions.#{action}") + ' ' + genitive(model_name) end def customized_admin_navbar_given? customized_admin_navbar.present? end def customized_admin_navbar ::Tramway::Admin.customized_admin_navbar end end end end
Version data entries
6 entries across 6 versions & 1 rubygems