<commit_before><% @title = "Course Admin" %>

<% content_for :stylesheets do %>
  <%= stylesheet_link_tag "student_gradebook" %>
<% end %>
<script type="text/javascript">
  $(document).ready(function() {
    $('.collapsible').collapsible();
  })
</script>
<div class="row">
  <div class="col s12 m12">
    <h2>Manage Course</h2>
    <hr>
  </div>
</div>
<div class="row">
  <div class="col s12 m4">
    <ul class="collapsible" data-collapsible="accordion">
      <li class="collapsible-menu-link">
        <div class="collapsible-header active"><h5>Admin Course</h5></div>
        <div class="collapsible-body">
          <ul class="options">
            <li><%= link_to "Course settings", [:edit, @course],
                { title: "Modify the properties for this course" } %></li>
            <li><%= link_to "Manage students", [:users, @course],
                { title: "Create, modify, and delete user accounts" } %></li>
            <li><%= link_to "Install assessment", [:install_assessment, @course, :assessments],
                { title: "Create an assessment from scratch or install one from an existing directory" } %></li>
            <li><%= link_to "Send bulk email", [:email, @course],
                { title: "Send an email to everyone in the class" } %></li>
            <li><%= link_to "Manage course attachments", [@course, :attachments],
                { title: "Distribute files to your students" } %></li>
            <li><%= link_to "Manage announcements", [@course, :announcements],
                { title: "Manage announcements via banners on either front page or all pages (persistent)." } %></li>

            <li><%= link_to "Manage schedulers", [@course, :schedulers],
                { title: "Set and update scheduler for log submissions. (Advanced feature)"} %></li>
            <li><%= link_to "Act as user", [:sudo, @course, @cud],
                { title: "Temporarily become another user" } %></li>
            <li><%= link_to "Run Moss cheat checker", [:moss, @course],
                { title: "Use the Stanford Moss server to detect copying" } %></li>

            <li class="collection-item red-text danger-bottom no-hover"><h4>Danger Zone</h4></li>
            <li class="danger-side"><%= link_to "Release all grades", [:bulkRelease, @course, @cud, :gradebook],
                { title: "Release all grades for all assessments", data: {confirm: "Are you sure you want to release all grades?"}} %></li>
            <li class="danger-side danger-bottom"><%= link_to "Reload course config file", [:reload, @course],
                { title: "Do this each time your modify the course.rb file", data: {confirm: "Are you sure you want to reload the course config file?"}}%></li>
          </ul><commit_msg> Pre-expanded Admin Course menu (#1509)<commit_after><% @title = "Course Admin" %>

<% content_for :stylesheets do %>
  <%= stylesheet_link_tag "student_gradebook" %>
<% end %>
<script type="text/javascript">
  $(document).ready(function() {
    $('.collapsible').collapsible();
  })
</script>
<div class="row">
  <div class="col s12 m12">
    <h2>Manage Course</h2>
    <hr>
  </div>
</div>
<div class="row">
  <div class="col s12 m4">
    <ul class="collapsible" data-collapsible="accordion">
      <li class="collapsible-menu-link active">
        <div class="collapsible-header active"><h5>Admin Course</h5></div>
        <div class="collapsible-body">
          <ul class="options">
            <li><%= link_to "Course settings", [:edit, @course],
                { title: "Modify the properties for this course" } %></li>
            <li><%= link_to "Manage students", [:users, @course],
                { title: "Create, modify, and delete user accounts" } %></li>
            <li><%= link_to "Install assessment", [:install_assessment, @course, :assessments],
                { title: "Create an assessment from scratch or install one from an existing directory" } %></li>
            <li><%= link_to "Send bulk email", [:email, @course],
                { title: "Send an email to everyone in the class" } %></li>
            <li><%= link_to "Manage course attachments", [@course, :attachments],
                { title: "Distribute files to your students" } %></li>
            <li><%= link_to "Manage announcements", [@course, :announcements],
                { title: "Manage announcements via banners on either front page or all pages (persistent)." } %></li>

            <li><%= link_to "Manage schedulers", [@course, :schedulers],
                { title: "Set and update scheduler for log submissions. (Advanced feature)"} %></li>
            <li><%= link_to "Act as user", [:sudo, @course, @cud],
                { title: "Temporarily become another user" } %></li>
            <li><%= link_to "Run Moss cheat checker", [:moss, @course],
                { title: "Use the Stanford Moss server to detect copying" } %></li>

            <li class="collection-item red-text danger-bottom no-hover"><h4>Danger Zone</h4></li>
            <li class="danger-side"><%= link_to "Release all grades", [:bulkRelease, @course, @cud, :gradebook],
                { title: "Release all grades for all assessments", data: {confirm: "Are you sure you want to release all grades?"}} %></li>
            <li class="danger-side danger-bottom"><%= link_to "Reload course config file", [:reload, @course],
                { title: "Do this each time your modify the course.rb file", data: {confirm: "Are you sure you want to reload the course config file?"}}%></li>
          </ul>
{'fraction_non_alphanumeric': 0.16585189208763354, 'fraction_numerical': 0.005431830526887561, 'mean_word_length': 2.799174690508941, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4114772', 'n_tokens_mistral': 1734, 'n_tokens_neox': 1619, 'n_words': 531}