<%= @survey.title %>

<% if @is_answer_list %>

<%=t('survey.taken_by')%>: <%=@user.member_name%>

<% else %> <% end %>
<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% (@survey_answer_groups || @survey_answers).each do |sa| %> <% user = sa.user.nil? ? nil : (User.find(sa.user) rescue nil) %> <% if !user.nil? %> <% else %> <% end %> <% end %>
<%= user.member_name rescue user.name %>NA<%= (@is_answer_list ? sa.updated_at : sa.last_modified).strftime("%h %d, %Y - %H:%M") rescue nil %> <% if @answer_repeat && !@is_answer_list %> <%= t("survey.view") %>(<%=sa.survey_answer_ids.count%>) <% else %> <%= t("survey.view_answers") %> <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate((@survey_answer_groups || @survey_answers)), class: "pagination pagination-centered" end %>