<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @hpsclass.hps_lectures.each do |lecture| %> <% if !lecture.lecture_pic.nil? && !lecture.lecture_pic.url.empty? %> <% else %> <% end %> <% end %>
<%= lecture.subject %>
<%= lecture.presenter %> <%= lecture.get_runtime %> <% if !lecture.hps_lecture_file.nil? && !lecture.hps_lecture_file.index_path.nil? %> Link <% else %> Not Available <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, class: "pull-right" do link_to(t("hps_learning.add_lecture"), add_lecture_admin_hps_learning_path(@hpsclass.id), :class => "btn btn-primary") + " " + link_to(t("back"), admin_hps_learnings_path, :class => "btn") end end %>