Module: Admin::CommentsHelper
- Defined in:
- app/helpers/admin/comments_helper.rb
Instance Method Summary collapse
- #comment_expiration_options ⇒ Object
- #comments_filter_options ⇒ Object
- #comments_state_options ⇒ Object
Instance Method Details
#comment_expiration_options ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/admin/comments_helper.rb', line 3 def I18n. :scope => :'adva.comments.options.expiration' do |i18n| [ [i18n.t(:not_allowed), -1 ], [i18n.t(:never_expire), 0 ], [i18n.t(:x_hours_after_publishing, :count => 24), 1 ], [i18n.t(:x_weeks_after_publishing, :count => 1), 7 ], [i18n.t(:x_months_after_publishing, :count => 1), 30], [i18n.t(:x_months_after_publishing, :count => 3), 90] ] end end |
#comments_filter_options ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/helpers/admin/comments_helper.rb', line 14 def = I18n.t(:'adva.comments.filter.options') [[[:all], 'all'], [[:state], 'state'], [[:body], 'body'], [[:author_name], 'author_name'], [[:author_email], 'author_email'], [[:author_url], 'author_homepage']] end |
#comments_state_options ⇒ Object
25 26 27 28 29 30 |
# File 'app/helpers/admin/comments_helper.rb', line 25 def = I18n.t(:'adva.comments.state.options') [[[:approved], 'approved'], [[:unapproved], 'unapproved']] end |