Sha256: b88454b98d7348ca9068efeb849d2f04f07eae67c99078d84622a3fd948b3dbd

Contents?: true

Size: 1.21 KB

Versions: 15

Compression:

Stored size: 1.21 KB

Contents

<%= render :partial => "/tr8n/admin/common/header" %>
<%= render :partial => "tabs" %>
<%= tr8n_will_filter(@topics) %>

<%= form_tag("", :id => "topics_form") do %>
  <%= will_filter_table_tag(@topics, :columns => [:created_at,
    [:language_id, lambda{|topic|
      if topic.language
        link_to(topic.language.english_name, :controller => "/tr8n/admin/language", :action => :view, :lang_id => topic.language.id)
      else
         "Deleted Language"    
      end  
    }], 

    [:translator_id, lambda{|topic|
      if topic.translator
        link_to(topic.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => topic.translator.id) 
      else
         "Deleted Translator"    
      end  
    }], 
    
    :topic,

    [:actions, lambda{|topic|
        actions = []
        actions << link_to("View Messages", "/tr8n/admin/forum/messages?wf_c0=language_forum_topic_id&wf_o0=is&wf_v0_0=#{topic.id}")
        actions << link_to("Delete", {:action => :delete_topic, :topic_id => topic.id}, {:confirm => "Are you sure you want to delete this topic?"})
        actions.join(" | ").html_safe
    }, 'white-space: nowrap'] 
  ]) %>
<% end %>

<%= render :partial => "/tr8n/admin/common/footer" %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.2.2 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.2.1 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.2.0 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.8 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.7 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.6 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.5 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.4 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.3 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.2 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.1.1 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.0.5 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.0.3 app/views/tr8n/admin/forum/index.html.erb
tr8n-3.0.2 app/views/tr8n/admin/forum/index.html.erb