<% title @table.name %>

Reports

<%= link_to "New report from this table", new_table_report_path(@table) if permitted_to? :report, @table %>

<%= render "reports/list", :list => @table.reports %>
User: <%= "#{@table.user.email}" %>
Type: <%= "#{@table.data_type}" %>
Running time: <%= table_time_run(@table) %>
<%= content_tag(:p, link_to("Edit", edit_table_path(@table))) if permitted_to? :edit, @table %> <% if @test_html %>

<%= link_to "Hide Table Output", table_path(@table) %>

<%= @test_html %> <% else %>

<%= link_to "See Table Output", table_path(@table, :test => true) %>

<% if @table.column_names and @table.column_names.size > 0 %> <% @table.column_names.each do |name| %> <% end %>
<%= name %>
<% end %> <% end %>
<%= simple_format(@table.data) %> <%= transform_display(@table) %>