Sha256: 05d77f6d4ce306f737d50078b50dbca72400277a13b055db97310e84410932fb

Contents?: true

Size: 399 Bytes

Versions: 26

Compression:

Stored size: 399 Bytes

Contents

module Writefully
  module SitesHelper

    STATE_PARTIAL = { 
      true  => 'yes',
      false => 'no'
    }

    def processing_partial site
      'writefully/sites/processing/' + STATE_PARTIAL[site.processing]
    end

    def healthy_partial site
      'writefully/sites/healthy/' + STATE_PARTIAL[site.healthy]
    end

    def site_tab(tab)
      tab.present? ? tab : 'posts'
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
writefully-0.8.2 app/helpers/writefully/sites_helper.rb
writefully-0.8.1 app/helpers/writefully/sites_helper.rb
writefully-0.8.0 app/helpers/writefully/sites_helper.rb
writefully-0.7.1 app/helpers/writefully/sites_helper.rb
writefully-0.6.12 app/helpers/writefully/sites_helper.rb
writefully-0.6.11 app/helpers/writefully/sites_helper.rb
writefully-0.6.10 app/helpers/writefully/sites_helper.rb
writefully-0.6.9 app/helpers/writefully/sites_helper.rb
writefully-0.6.7 app/helpers/writefully/sites_helper.rb
writefully-0.6.6 app/helpers/writefully/sites_helper.rb
writefully-0.6.5 app/helpers/writefully/sites_helper.rb
writefully-0.6.4 app/helpers/writefully/sites_helper.rb
writefully-0.6.3 app/helpers/writefully/sites_helper.rb
writefully-0.6.2 app/helpers/writefully/sites_helper.rb
writefully-0.5.1 app/helpers/writefully/sites_helper.rb
writefully-0.5.0 app/helpers/writefully/sites_helper.rb
writefully-0.4.10 app/helpers/writefully/sites_helper.rb
writefully-0.4.8 app/helpers/writefully/sites_helper.rb
writefully-0.4.7 app/helpers/writefully/sites_helper.rb
writefully-0.4.6 app/helpers/writefully/sites_helper.rb