Sha256: 76746724e2ce85af746c235cb5dedc407426ac64ea9cdfffc0d99b18d3fe752b

Contents?: true

Size: 410 Bytes

Versions: 16

Compression:

Stored size: 410 Bytes

Contents

class CmsBlogPresenter < BasePresenter

  presents :cms_blog

  #------------------------------------------------------------------------------
  def label_published
    cms_blog.is_published? ? h.colored_label('Published', :success) : h.colored_label('Draft')
  end
  
  #------------------------------------------------------------------------------
  def visibility
    cms_blog.visibility_to_s
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_cms-4.2.3.10 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.9 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.8 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.7 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.6 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.5 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.4 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.3 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.2 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3.1 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.3 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.2.3 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.2.2 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.2.1 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.2 app/presenters/cms_blog_presenter.rb
dm_cms-4.2.1.5 app/presenters/cms_blog_presenter.rb