app/helpers/alchemy/admin/pages_helper.rb in alchemy_cms-3.3.3 vs app/helpers/alchemy/admin/pages_helper.rb in alchemy_cms-3.4.0.rc1

- old
+ new

@@ -20,10 +20,11 @@ # Returns the translated explanation of the page status. # def combined_page_status(page) page.status.map do |state, _value| next if state == :locked - val = content_tag(:span, '', class: page.send(state) ? "page_status #{state}" : "page_status not_#{state}") + css_class = page.send("#{state}?") ? "page_status #{state}" : "page_status not_#{state}" + val = content_tag(:span, '', class: css_class) val + page.status_title(state) end.delete_if(&:blank?).join("<br>").html_safe end # Renders a label for page's page layout