hps_member/app/views/admin/member_counselors/uploads.html.erb

39 lines
939 B
Plaintext
Raw Normal View History

2017-05-18 12:12:35 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @files.each do |file| %>
<tr>
<td>
<%= file.created_at.strftime("%Y/%m/%d") %>
</td>
<td>
<a href="<%= file.file.url %>" target="_blank"><%= file.title %></a>
</td>
<td>
<%= file.download_count %>
</td>
<td>
<%= file.hps_member.account %>
</td>
<td>
<%= file.hps_member.get_user_type %>
</td>
<td>
<a href="<%= destroy_upload_admin_member_counselor_path(file) %>" data-method="delete" data-confirm="Are you sure?" class="text-error">Delete</a>
</td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@files), class: "pagination pagination-centered"
end
%>