Sha256: d6938658d5a39030d0e34d1a4426c6088b6d89380e46c04960bf5be53d31123d
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
# frozen_string_literal: true module Tramway module Landing module ApplicationHelper include Tramway::Admin::RussianCasesHelper include Tramway::Profiles::LinksHelper if defined?(::Tramway::Profiles) def actual_forms(forms) forms = forms.select { |f| f.form_name != 'user_sign_up' } if @signed_in forms = forms.select { |f| f.form_name != 'user_sign_in' } if @signed_in forms end def block_title(block) if block.page.page_type.main? (content_for?(:application_name) && yield(:application_name).present?) ? yield(:application_name) : @application.public_name else block.page.title end end def block_tagline(block) if block.page.page_type.main? (content_for?(:application_tagline) && yield(:application_tagline).present?) ? yield(:application_tagline) : @application.tagline else raw block.page.body end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-landing-3.1.0.5 | app/helpers/tramway/landing/application_helper.rb |