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

Version Path
beef-acts_as_content_node-0.1.6 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.13 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.12 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.11 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.10 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.9 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.8 app/helpers/content_nodes_helper.rb
acts_as_content_node-0.1.7 app/helpers/content_nodes_helper.rb