Sha256: ee28fd2d741285f8e41ed578a411ed867ea4d768b576758b84ac00d4ede6a7cc
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
module Admin::BaseHelper def title(page_title) content_for(:title) { page_title } end def header locals = { :admin_title => admin_title } render "helpers/admin/base/header", locals end def admin_title if defined?(Admin::Setting) Admin::Setting.admin_title || Typus.admin_title else Typus.admin_title end end def has_root_path? Rails.application.routes.routes.map(&:name).include?("root") end def apps render "helpers/admin/base/apps" end def login_info render "helpers/admin/base/login_info" unless admin_user.is_a?(FakeUser) end def admin_sign_out_path case Typus.authentication when :devise send("destroy_#{Typus.user_class_name.underscore}_session") else destroy_admin_session_path end end def display_flash_message(message = flash) if message.keys.any? locals = { :flash_type => message.keys.first, :message => message } render "helpers/admin/base/flash_message", locals end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typus-3.1.0.rc14 | app/helpers/admin/base_helper.rb |