Module: Admin::PageHelper
- Defined in:
- app/helpers/admin/page_helper.rb
Instance Method Summary collapse
Instance Method Details
#format_posted_at(fmt) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/helpers/admin/page_helper.rb', line 6 def format_posted_at(fmt) if @page && @page.posted_at @page.posted_at.to_time.strftime fmt else "not yet posted" end end |
#lock_disabled ⇒ Object
2 3 4 |
# File 'app/helpers/admin/page_helper.rb', line 2 def lock_disabled @page.lock_disabled_html end |