This file is indexed.

/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/templates/mygrades.pt is in python-schooltool.gradebook 2.6.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<tal:tag condition="view/update" />
<html metal:use-macro="context/@@standard_macros/page"
      i18n:domain="schooltool.gradebook">
<head>
  <title metal:fill-slot="title" i18n:translate="">
    Gradebook
  </title>
</head>
<body>
<div metal:fill-slot="body">

  <form method="post"
        tal:attributes="action string:${context/@@absolute_url}">
    <tal:if condition="python:not list(view.getSections())">
      <b>Term:</b>
      <span tal:content="view/getCurrentTerm" />
    </tal:if>
    <tal:if condition="python:list(view.getTerms())">
      <label for="currentTerm" i18n:translate="">Term</label>
      <select name="currentTerm"
              onchange="this.form.submit()">
        <tal:block repeat="term view/getTerms">
          <option
              tal:attributes="value term/form_id;
                              selected term/selected"
              tal:content="term/title" />
        </tal:block>
      </select>
    </tal:if>

    <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
    <tal:if condition="python:not list(view.getSections())">
      <b>Section:</b>
      <span tal:content="view/getCurrentSection" />
    </tal:if>
    <tal:if condition="python:list(view.getSections())">
      <label for="currentSection" i18n:translate="">Section</label>
      <select name="currentSection"
              onchange="this.form.submit()">
        <tal:block repeat="section python:view.getSections()">
          <option value="1"
              tal:condition="python:section['title'] != view.getCurrentSection()"
              tal:attributes="value section/title"
              tal:content="section/title" />
          <option value="1" selected="selected"
              tal:condition="python:section['title'] == view.getCurrentSection()"
              tal:attributes="value section/title"
              tal:content="section/title" />
        </tal:block>
      </select>
    </tal:if>
    <br /><br />
  </form>

  <table class="schooltool_gradebook">
    <tr>
      <tal:block repeat="worksheet view/worksheets">
        <td class="active_tab">
          <a tal:condition="not: worksheet/current"
             tal:attributes="href worksheet/url"
             tal:content="worksheet/title" />
          <span style="font-weight: bold;"
                tal:condition="worksheet/current"
                tal:content="worksheet/title" />
        </td>
      </tal:block>
    <tr>
  </table>

  <table class="student_gradebook">
    <tr tal:condition="not: view/average_hide">
      <td colspan="2" class="odd student_cell">
        <div tal:condition="view/average"
             tal:content="string: ${view/average_label}: ${view/average}">Average</div>
        <div tal:condition="not: view/average" i18n:translate="">Nothing Graded</div>
      </td>
    </tr>
    <tr>
     <th class="cell student_header">
       <div i18n:translate="">Activity</div>
     </th>
     <th class="cell student_header">
       <div i18n:translate="">Grade</div>
     </th>
    </tr>
    <tr tal:repeat="row view/table">
      <tal:if condition="repeat/row/odd">
        <td class="even student_cell">
          <div tal:content="row/activity">Activity</div>
        </td>
        <td tal:condition="row/grade/comment" class="even student_cell">
          <tal:block repeat="paragraph row/grade/paragraphs">
            <p tal:content="structure paragraph"/>
          </tal:block>
        </td>
        <td tal:condition="not: row/grade/comment" class="even student_cell">
          <div tal:content="row/grade/value" />
        </td>
      </tal:if>
      <tal:if condition="repeat/row/even">
        <td class="odd student_cell">
          <div tal:content="row/activity">Activity</div>
        </td>
        <td tal:condition="row/grade/comment" class="odd student_cell">
          <tal:block repeat="paragraph row/grade/paragraphs">
            <p tal:content="structure paragraph"/>
          </tal:block>
        </td>
        <td tal:condition="not: row/grade/comment" class="odd student_cell">
          <div tal:content="row/grade/value" />
        </td>
      </tal:if>
    </tr>
  </table>

</div>
</body>
</html>