Sha256: 8d9a071a2d2bd5dc2824328eb9e0ce86e142cc7db4a40cf43a34d90be206fb36

Contents?: true

Size: 253 Bytes

Versions: 59

Compression:

Stored size: 253 Bytes

Contents

module PageTitleHelper
  def page_title(subject)
    name = "Mumuki#{Organization.current.title_suffix}"

    if subject && !subject.new_record?
      "#{subject.friendly} - #{name}"
    else
      "#{name} - #{t :mumuki_catchphrase}"
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
mumuki-laboratory-7.0.2 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.7 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.6 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.5 app/helpers/page_title_helper.rb
mumuki-laboratory-7.0.1 app/helpers/page_title_helper.rb
mumuki-laboratory-7.0.0 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.4 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.3 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.2 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.1 app/helpers/page_title_helper.rb
mumuki-laboratory-6.7.0 app/helpers/page_title_helper.rb
mumuki-laboratory-6.6.1 app/helpers/page_title_helper.rb
mumuki-laboratory-6.6.0 app/helpers/page_title_helper.rb
mumuki-laboratory-6.5.1 app/helpers/page_title_helper.rb
mumuki-laboratory-6.5.0 app/helpers/page_title_helper.rb
mumuki-laboratory-6.4.2 app/helpers/page_title_helper.rb
mumuki-laboratory-6.4.1 app/helpers/page_title_helper.rb
mumuki-laboratory-6.4.0 app/helpers/page_title_helper.rb
mumuki-laboratory-6.2.0 app/helpers/page_title_helper.rb