#contents_div - if contents.count == 0 %p.mgn_v_20 - if params[:query] There is no Study-Content available in this section for your current search. Try searching with other keyword. - else There is no Study-Content available in this section - else %table#contents_table.styled_table %thead %tr %th Document Name %th Date %th Course %th Author %th Document Type %th File Size %th View/Download - if ( current_user.tutor? ) %th %tbody - contents.each do |content| %tr %td#file_name= link_to content.document_file_name, content.document.url , :target => '_blank', id: "content_#{content.id}" %td= content.created_at.to_date.strftime("%m.%d.%Y") %td= content.user.name %td= content.course.name %td= content.document_content_type %td= content.document_file_size %td= link_to "Download", content.document.url - if ( current_user.tutor? ) - if content.private_content? %td{:id => "share_file_#{content.id}", :style => "text-align: center;"}= link_to "Share", '#', class: "blue-button share ", style: "font-size: 18px;", id: current_user.id, data: {placement: "top"} = paginate contents