Sha256: 031068a2678492a788212afdd3bd84069ae9b15ad449630a9354dbb8ea242e6e
Contents?: true
Size: 410 Bytes
Versions: 8
Compression:
Stored size: 410 Bytes
Contents
module ContentNodesHelper def content_status(node) if node.published? '<span class="status approved">Approved</span>' elsif node.published_at.nil? '<span class="status draft">Draft</span>' else '<span class="status hidden">Hidden</span>' end end def publish_select(form) render :partial => '/content_nodes/publish_select', :locals => { :f => form} end end
Version data entries
8 entries across 8 versions & 2 rubygems