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