Sha256: 71dc862f9c6bacc1c65d03bc3e3fc2ff785919f3e3ae602d2f3985d4943a8f0d
Contents?: true
Size: 1.75 KB
Versions: 15
Compression:
Stored size: 1.75 KB
Contents
<%= render :partial => "/tr8n/admin/common/header" %> <%= render :partial => "tabs" %> <%= tr8n_will_filter(@reports) %> <%= form_tag("", :id => "reports_form") do %> <%= will_filter_table_tag(@reports, :columns => [:created_at, [:language_id, lambda{|report| if report.language link_to(report.language.english_name, :controller => "/tr8n/admin/language", :action => :view, :lang_id => report.language.id) else "Deleted Language" end }], [:translator_id, lambda{|report| if report.translator link_to(report.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => report.translator.id) else "Deleted Translator" end }], :reason, [:author, lambda{|report| if report.message and report.message.translator link_to(report.message.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => report.message.translator.id) else "Deleted Message" end }], [:language_forum_message_id, lambda{|report| if report.message report.message.toHTML else "Deleted Message" end }], [:actions, lambda{|report| actions = [] actions << link_to("Delete Message", {:action => :delete_message, :msg_id => report.message.id}, {:confirm => "Are you sure you want to delete this message?"}) if report.message actions << link_to("Delete Report", {:action => :delete_report, :report_id => report.id}, {:confirm => "Are you sure you want to delete this report?"}) actions.join(" | ").html_safe }, 'white-space: nowrap'] ]) %> <% end %> <%= render :partial => "/tr8n/admin/common/footer" %>
Version data entries
15 entries across 15 versions & 1 rubygems