<% unless flash[:notice].nil? %>
<%= flash[:notice] %>
<% end %>
<%= link_to "#{t('courses_text')}", courses_path %> ยป
<%= @course.full_name %>
<% @batches.each do |batch| %>
-
<%= link_to batch.full_name, [@course, batch] %>
<%= link_to "#{t('edit_text')}", edit_course_batch_path(@course, batch) if permitted_to? :edit, :batches %>
<%= link_to("#{t('delete_text')}", [@course, batch], :method => 'delete', :confirm => "#{t('delete_confirm_msg')}") if permitted_to? :destroy, :batches %>
<% end %>