Module: Writefully::SitesHelper
- Defined in:
- app/helpers/writefully/sites_helper.rb
Constant Summary collapse
- STATE_PARTIAL =
{ true => 'yes', false => 'no' }
Instance Method Summary collapse
Instance Method Details
#healthy_partial(site) ⇒ Object
13 14 15 |
# File 'app/helpers/writefully/sites_helper.rb', line 13 def healthy_partial site 'writefully/sites/healthy/' + STATE_PARTIAL[site.healthy] end |
#processing_partial(site) ⇒ Object
9 10 11 |
# File 'app/helpers/writefully/sites_helper.rb', line 9 def processing_partial site 'writefully/sites/processing/' + STATE_PARTIAL[site.processing] end |
#site_tab(tab) ⇒ Object
17 18 19 |
# File 'app/helpers/writefully/sites_helper.rb', line 17 def site_tab(tab) tab.present? ? tab : 'posts' end |