Sha256: a8a322a6f0170f3c424b0fbda6ffa1e0ea08add0f5261c2788ff806b9cb15f0a

Contents?: true

Size: 282 Bytes

Versions: 16

Compression:

Stored size: 282 Bytes

Contents

class CmsSnippetPresenter < BasePresenter

  presents :cms_snippet

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

Version data entries

16 entries across 16 versions & 1 rubygems

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