<%= @survey.title %>

<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @survey_answers.each do |sa| %> <% user = sa.user.nil? ? nil : (User.find(sa.user) rescue nil) %> <% if !user.nil? %> <% else %> <% end %> <% end %>
<%= user.name %> <%= sa.created_at.strftime("%y-%M-%d %h:%m") rescue nil %> <%= t("survey.view_answers") %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@survey_answers), class: "pagination pagination-centered" end %>