Sha256: 9b2e9434d7f6ac72c1ee24f1f9262bb14a044dc9c0bd0f1d6587383b57e2fa5f
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
module NoCms::Admin::Pages module PagesHelper def page_listing_item_classes page, current_page classes = [] classes << 'current' if current_page == page classes << 'oculto' if page.draft classes end def block_form_classes block classes = [] classes << 'oculto' if block.draft classes << 'new' if block.new_record? classes end def block_form_id block block.new_record? ? "new_content_block_#{block.layout}" : "content_block_#{block.id}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nocms-admin-pages-0.0.1 | app/helpers/no_cms/admin/pages/pages_helper.rb |