Sha256: ef59d9886752ac66b7375e03f27cbfbffdde9bfdafe47bf0efb8ea683c5592b6

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

module MiscHelper

  def create_description
    truncate(strip_tags(content), :length => 50)
  end

  def content_classes()
    classes = ""
    classes << @page.classes unless @page.nil? or @page.classes.nil?
    classes
  end

  def edit_icon(type="")
    image_tag("admin/ui/edit-icon.png", :class =>"brush tip", :title => "Edit #{type}")
  end

  def delete_icon(type="")
    image_tag("admin/ui/delete-icon.png", :class =>"brush tip", :title => "Delete #{type}")
  end

  def index_icon(type="")
    image_tag("admin/ui/index-icon.png", :class =>"eye tip", :title => "Show All #{type}")
  end

  def new_icon(type="")
    image_tag("admin/ui/new-icon.png", :class =>"eye tip", :title => "Create New #{type}")
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-cms-0.0.07 app/helpers/misc_helper.rb
dust-cms-0.0.06 app/helpers/misc_helper.rb
dust-cms-0.0.05 app/helpers/misc_helper.rb