<commit_before>{% extends "base_generic.html" %}

{% block title %}Student: {{student.first_name}} {{student.middle_name}} {{ student.last_name }}, Section: {{section.number}}{% endblock %}

{% block content %}

<h1>Student: {{ student.last_name }}, {{student.first_name}} {{student.middle_name|default:""}}</h1>

{% if section %}
<table>
  <tr><th>Title:     </th><td>{{section.course}}</td></tr>
  <tr><th>Semester:  </th><td>{{section.semester}}</td></tr>
  <tr><th>Enrollment:</th><td>{{roster.enrollment_status}}</td></tr>
</table>

{% else %}
    <p>Section not available.</p>
{% endif %}

{% if assignment_scores %}
<table class="table table-striped table-condensed">
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th><span data-tooltip class="has-tip" title="Edit the score in the admin panel.">Score</span></th>
    <th>Letter Grade</th>
    <th>Max Possible Score</th>
  </tr>
    {% for assignment in assignment_scores %}
    {% ifequal assignment.assignment.section section %}
    <tr>
        <td>{{assignment.assignment.name}}</dt>
        <td>{{assignment.assignment.assignment_type}}</td>
        <td><a href="{% url 'admin:index' %}grades/assignmentscore/{{assignment.id}}/">{{assignment.score}}</a></td>
	<td>{{assignment.get_letter_grade}}</td>
        <td>{{assignment.assignment.max_value}}</td>
    </tr>
    {% endifequal %}
    {% endfor %}
</table>
{% else %}
    <p>No assignment scores are available.</p>
{% endif %}

    <a href="{% url 'admin:index' %}grades/assignmentscore/add/?student={{student.id}}">Add a new assignment score</a>
{% endblock %}

{% block local_sidebar %}
Section {{section.number}}
<ul>
<li><a href="{% url 'grades:roster' section.id %}">View Section Roster</a></li>
<li><a href="{% url 'grades:assignments' section.id %}">View Section Assignments</a></li>
</ul>
{% endblock %}
<commit_msg>Adding missing menu item for adding homework assignments<commit_after>{% extends "base_generic.html" %}

{% block title %}Student: {{student.first_name}} {{student.middle_name}} {{ student.last_name }}, Section: {{section.number}}{% endblock %}

{% block content %}

<h1>Student: {{ student.last_name }}, {{student.first_name}} {{student.middle_name|default:""}}</h1>

{% if section %}
<table>
  <tr><th>Title:     </th><td>{{section.course}}</td></tr>
  <tr><th>Semester:  </th><td>{{section.semester}}</td></tr>
  <tr><th>Enrollment:</th><td>{{roster.enrollment_status}}</td></tr>
</table>

{% else %}
    <p>Section not available.</p>
{% endif %}

{% if assignment_scores %}
<table class="table table-striped table-condensed">
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th><span data-tooltip class="has-tip" title="Edit the score in the admin panel.">Score</span></th>
    <th>Letter Grade</th>
    <th>Max Possible Score</th>
  </tr>
    {% for assignment in assignment_scores %}
    {% ifequal assignment.assignment.section section %}
    <tr>
        <td>{{assignment.assignment.name}}</dt>
        <td>{{assignment.assignment.assignment_type}}</td>
        <td><a href="{% url 'admin:index' %}grades/assignmentscore/{{assignment.id}}/">{{assignment.score}}</a></td>
	<td>{{assignment.get_letter_grade}}</td>
        <td>{{assignment.assignment.max_value}}</td>
    </tr>
    {% endifequal %}
    {% endfor %}
</table>
{% else %}
    <p>No assignment scores are available.</p>
{% endif %}

    <a href="{% url 'admin:index' %}grades/assignmentscore/add/?student={{student.id}}">Add a new assignment score</a>
{% endblock %}

{% block local_sidebar %}
Section {{section.number}}
<ul>
<li><a href="{% url 'grades:roster' section.id %}">View Section Roster</a></li>
<li><a href="{% url 'grades:assignments' section.id %}">View Section Assignments</a></li>
<li><a href="{% url 'grades:hw_entry' section.id %}">Enter Homework Assignments</a></li>
</ul>
{% endblock %}

{'fraction_non_alphanumeric': 0.2240566037735849, 'fraction_numerical': 0.0010482180293501049, 'mean_word_length': 4.492086330935252, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 143, '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': '3870184', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1285, 'n_words': 251}