app/helpers/tramway/landing/application_helper.rb in tramway-landing-3.1.0.5 vs app/helpers/tramway/landing/application_helper.rb in tramway-landing-3.1.0.6
- old
+ new
@@ -5,25 +5,25 @@
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 = 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.page.page_type.main?
- (content_for?(:application_name) && yield(:application_name).present?) ? yield(:application_name) : @application.public_name
+ 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
+ content_for?(:application_tagline) && yield(:application_tagline).present? ? yield(:application_tagline) : @application.tagline
else
raw block.page.body
end
end
end