<% if @can_edit || module_item.nil? %>
<% end %>
<%= module_item_translated_content_type(module_item, @is_student) %>
<% if module_item && module_item.content_type == 'ContextModuleSubHeader' %>
<% else %>
<%= (criterion && criterion[:min_score]) || nbsp %>
<%= (criterion && criterion[:type]) || nbsp %>
<%= module_item ? module_item.content_type_class : nbsp %>
<%= module_item ? module_item.id : nbsp %>
<%= module_item && module_item.graded? ? '1' : '0' %>
<% if !@is_student && show_checkpoints %>
<%end%>
<% if module_item&.graded? && (!module_item.try_rescue(:assignment).restrict_quantitative_data?(@current_user, check_extra_permissions: true))%>
<%end%>
<% score_display = content_tag(:span, criterion && criterion[:min_score] || nbsp, class: 'min_score') %>
<%= t 'min_score.unfulfilled', 'Score at least %{score}', :score => score_display %>
<%= t 'Must score at least %{score} to complete this module item', :score => score_display %>
<%= t 'min_score.fulfilled', 'Scored at least %{score}', :score => score_display %>
<%= t 'Module item has been completed by scoring at least %{score}', :score => score_display %>
<%= t('View') %>
<%= t('Must view in order to complete this module item') %>
<%= t('Viewed') %>
<%= t('Module item has been viewed and is complete') %>
<%= t 'Mark done' %>
<%= t 'Must mark this module item done in order to complete' %>
<%= t 'Marked done' %>
<%= t 'Module item marked as done and is complete' %>
<%= t('must_contribute.unfulfilled', 'Contribute') %>
<%= t('Must contribute to this module item to complete it') %>
<%= t('must_contribute.fulfilled', "Contributed") %>
<%= t('Contributed to this module item and is complete') %>
<%= t('must_submit.unfulfilled', 'Submit') %>
<%= t('Must submit this module item to complete it') %>
<%= t('must_submit.fulfilled', 'Submitted') %>
<%= t('Module item submitted and is complete') %>
<% if module_item && module_item.content_type == 'ContextModuleSubHeader' %>
<% else %>
<% end %>
<% if !@can_view %>
<%# going to set this in JS-land, not here %>
<% end %>
<% if @can_view || module_item.nil? || can_direct_share && module_item.direct_shareable? %>
<% if @can_view || module_item.nil? %>
<% end %>
<% end %>
<% if @is_student && @context.root_account.feature_enabled?(:discussion_checkpoints) && module_item && module_item.content_type == 'DiscussionTopic' && module_item.content.checkpoints? %>
<% checkpoints = [module_item.content.reply_to_topic_checkpoint, module_item.content.reply_to_entry_checkpoint] %>
<% checkpoints.each do |checkpoint| %>
<% left_padding = case module_item.try_rescue(:indent)
when 1 then "60px"
when 2 then "80px"
when 3 then "100px"
when 4 then "120px"
when 5 then "140px"
else "40px"
end %>
<%= checkpoint.sub_assignment_tag == CheckpointLabels::REPLY_TO_TOPIC ? t("Reply to Topic") : t("Required Replies (%{number})", number: module_item.content.reply_to_entry_required_count) %>
<% if checkpoint.overridden_for(@current_user).due_at %>
<%= datetime_string(checkpoint.overridden_for(@current_user).due_at) %>
<% end %>
<% end %>
<% end %>