Sha256: 2d3ea9bb9a89a9b9d31d12ceb9b908b01e0b9e4b593be268ef7c2cd407e4ec81
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 KB
Contents
# frozen_string_literal: true module Tramway module Landing module ApplicationHelper include Tramway::Admin::RussianCasesHelper include Tramway::Profiles::LinksHelper if defined?(::Tramway::Profiles) include ::FontAwesome5::Rails::IconHelper def actual_forms(forms) forms = forms.reject { |f| f.form_name == 'user_sign_up' } if @signed_in forms = forms.reject { |f| f.form_name == 'user_sign_in' } if @signed_in forms end def block_title(block) if block.is_a? Array block.each do |current_block| current_block.page.title end else if block.page.page_type.main? content_for?(:application_name) && content_for(:application_name).present? ? content_for(:application_name) : @application.public_name else block.page.title end end end def block_tagline(block) if block.is_a? Array block.each do |_current_block| raw _current_block.page.body end else if block.page.page_type.main? content_for?(:application_tagline) && content_for(:application_tagline).present? ? content_for(:application_tagline) : @application.tagline else raw block.page.body end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems