Module: Admin::BlogHelper
- Defined in:
- app/helpers/admin/blog_helper.rb
Instance Method Summary collapse
Instance Method Details
#format_posted_at(fmt) ⇒ Object
12 13 14 15 16 |
# File 'app/helpers/admin/blog_helper.rb', line 12 def format_posted_at(fmt) if @post && @post.posted_at @post.posted_at.localtime.strftime fmt end end |
#lock_disabled ⇒ Object
2 3 4 |
# File 'app/helpers/admin/blog_helper.rb', line 2 def lock_disabled @post.lock_disabled_html end |
#post_lock_disabled ⇒ Object
6 7 8 9 10 |
# File 'app/helpers/admin/blog_helper.rb', line 6 def post_lock_disabled if @post.locked? || @post.posted? 'disabled="disabled"'.html_safe end end |