This feature allows you to approve study contents which was uploaded by all #{Student.model_name.human.pluralize.downcase} and #{Tutor.model_name.human.pluralize.downcase}.
<% else %>File name | Course | Created by | Created | ||
---|---|---|---|---|---|
<%= link_to content.document_file_name, content.document.url, :target => '_blank', id: "content_#{content.id}" %> | <%= content.course.name %> | <%= "#{content.user.name} (#{content.user.type})" %> | <%= time_ago_in_words content.created_at %> ago | <% if !content.approved %> <%= link_to "Approve", "#", class: "approve_button ts_btn pull-right mgn_r_5", id: "approve_#{content.id}", :data => { :id => content.id, :user => content.user.name, :type => content.user.type } %> <% end %> | <%= link_to "decline", admin_content_path(content.id), method: :delete,class: "btn btn-warning" %> |