feedback_helper.rb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:0k
源码类别:

Ajax

开发平台:

Others

  1. module Admin::FeedbackHelper
  2.   def comment_class state
  3.     (state.to_s =~ /Ham/) ? 'published' : 'unpublished'
  4.   end
  5.   def show_actions item
  6.     html = <<-HTML 
  7.       <div class='action' style='margin-top: 10px;'>
  8.         <small>#{link_to _("Show conversation"), :controller => 'feedback', :action => 'article', :id => item.article_id}</small> |
  9.         <small>#{link_to _("Delete"), :action => 'destroy', :id => item.id}</small>
  10.     </div>
  11.     HTML
  12.   end
  13. end