This file is indexed.

/usr/share/pyshared/bitten/templates/bitten_config.html is in trac-bitten 0.6+final-3.

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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
  <head>
    <title>$title</title>
    <script type="text/javascript" src="${req.href.chrome('bitten', 'excanvas.js')}"></script>
    <script type="text/javascript" src="${req.href.chrome('bitten', 'jquery.flot.js')}"></script>
  </head>
  <body>
    <strong py:def="build_status(status)" class="status">
      <py:choose test="status">
      <py:when test="'completed'">Success</py:when>
      <py:when test="'failed'">Failed</py:when>
      <py:when test="'in progress'">In-progress</py:when>
      </py:choose>
    </strong>
    
    <div py:def="build_time(build)" class="system">
      <py:choose>
	<span py:when="build.stopped">
	  <div>Duration: ${build.duration}</div>
	</span>
	<span py:otherwise="">
	  <div>${build.started} (${build.started_delta} ago)</div>
	</span>
      </py:choose>
    </div>

    <div py:def="slave_info(slave)" class="system">
      <strong>$slave.name</strong> ($slave.ipnr)<br />
      $slave.os_name $slave.os_version
      <py:if test="slave.machine or slave.processor"> / </py:if>
      ${slave.processor or slave.machine or ''}
    </div>
    
    <ul py:def="build_steps(steps)" py:if="steps" class="steps">
      <li py:for="step in steps"
          class="${step.cls}">
        <span class="duration">$step.duration</span> 
        <a href="$step.href" title="${step.description or None}">
          $step.name
        </a>
        <ul py:if="step.status is 'failed' and step.errors">
          <li py:for="error in step.errors">$error</li>
        </ul>
      </li>
    </ul>
 
    <div id="content" class="build">
      <h1>$title</h1><py:choose test="page_mode"><py:when test="'overview'">
      <py:if test="builds_pending">
       <div>$builds_pending pending build<py:if test="builds_pending > 1">s</py:if>
       </div></py:if><py:if test="builds_inprogress">
       <div>$builds_inprogress in-progress build<py:if test="builds_inprogress > 1">s</py:if>
      </div></py:if>
      <form id="prefs" method="get" action="">
        <div>
          <input type="checkbox" id="showall" name="show" value="all"
                 checked="${show_all and 'checked' or None}" />
          <label for="showall">Show deactivated configurations</label>
        </div>
        <div class="buttons">
          <input type="submit" value="Update" />
        </div>
      </form><py:for each="config in configs">
      <h2 class="config ${not config.active and 'deactivated' or ''}">
        <a href="$config.href">$config.label</a>
      </h2><py:if test="config.builds_pending">
        <div>$config.builds_pending pending
          build<py:if test="config.builds_pending > 1">s</py:if>&nbsp;<i>(<py:for each="platform in config.platforms">
        <py:if test="platform.builds_pending">
          $platform.name: $platform.builds_pending
        </py:if></py:for>)</i>
       </div></py:if><py:if test="config.builds_inprogress">
       <div>$config.builds_inprogress in-progress
         build<py:if test="config.builds_inprogress > 1">s</py:if>&nbsp;<i>(<py:for each="platform in config.platforms"><py:if test="platform.builds_inprogress">
            $platform.name: $platform.builds_inprogress
          </py:if></py:for>)</i>
      </div></py:if>
      <div py:if="config.description" class="description">
        $config.description
      </div><py:if test="len(config.builds)">
      <h3 class="builds"><a href="$config.href">Latest builds</a></h3>
      <table class="builds"><tbody><tr>
        <th py:with="youngest_rev = config.youngest_rev">
          <a href="$youngest_rev.href">[$youngest_rev.display_rev]</a>
          by ${format_author(youngest_rev.author)}<p class="date">$youngest_rev.date</p>
          <p class="message">$youngest_rev.message</p>
        </th>
        <td py:for="build in config.builds" class="$build.cls"><py:choose>
        <py:when test="build.status != 'pending'">
          <a href="$build.href">$build.platform</a>
          <p class="date">$build.stopped</p>
          ${slave_info(build.slave)}
          ${build_status(build.status)}
        </py:when><py:otherwise>
          <strong>$build.platform</strong>
          <p class="nobuild">No build yet</p>
        </py:otherwise></py:choose>
        </td>
      </tr></tbody></table></py:if></py:for>

    </py:when><py:when test="'view_config'">
      <div id="charts"><py:for each="chart in config.charts">
        <h3 id="chart_${chart.category}_title" style="text-align: center;"/>
        <div id="chart_${chart.category}" style="${chart.style}"></div>
        <script type="text/javascript">
          $(document).ready(function() { 
               
              $.getJSON('${chart.href}', function(json) { 
                   
                  $("#chart_${chart.category}_title").append(json.title);
                  json.options['xaxis']['tickFormatter'] = function(rev) { return "[" + rev + "]"; }; 
                  $.plot($("#chart_${chart.category}"), json.data, json.options); 
              }); 
          });
        </script>
        <br /></py:for>
      </div>
      <form py:if="config.can_modify" id="prefs" method="post"
            class="activation"><py:choose>
        <div py:when="not config.active" class="help">
          This build configuration is currently inactive.<br />
          No builds will be initiated for this configuration<br />
          until it is activated.
        </div>
        <div py:otherwise="" class="help">
          This configuration is currently active.
        </div></py:choose>
        <div class="buttons" py:choose="">
          <input type="hidden" name="action" value="edit" />
          <input py:when="config.active" type="submit" name="deactivate"
                 value="Deactivate" />
          <input py:otherwise="" type="submit" name="activate"
                 value="Activate" />
        </div>
      </form>
      <p class="path">
        Repository path: 
        <a py:if="config.path" href="$config.browser_href">$config.path</a>
        ${not config.path and '&mdash;' or ''}
        <py:if test="config.min_rev or config.max_rev">
        (<py:if test="config.min_rev">starting at 
         <a href="$config.min_rev_href">[$config.min_rev]</a></py:if>
         <py:if test="config.min_rev and config.max_rev">, </py:if>
         <py:if test="config.max_rev">up to 
         <a href="$config.max_rev_href">[$config.max_rev]</a></py:if>)
        </py:if>
      </p>
      <div py:if="config.description" class="description">
        $config.description
      </div>
      <div class="buttons">
        ${attach_file_form(config.attachments)}
      </div>
      ${list_of_attachments(config.attachments, compact=True)}
      <py:if test="config.builds_pending">
      <div>$config.builds_pending pending build<py:if test="config.builds_pending > 1">s</py:if>&nbsp;<i>(<py:for each="platform in config.platforms">
        <py:if test="platform.builds_pending">
          $platform.name: $platform.builds_pending
        </py:if></py:for>)</i>
       </div></py:if><py:if test="config.builds_inprogress">
	<div>$config.builds_inprogress in-progress build<py:if test="config.builds_inprogress > 1">s</py:if>&nbsp;<i>(<py:for each="platform in config.platforms"><py:if test="platform.builds_inprogress">
	$platform.name: $platform.builds_inprogress
        </py:if></py:for>)</i>
      </div></py:if>

      <table py:if="config.platforms and config.builds"
             class="listing" id="builds">
        <thead><tr>
          <th class="chgset"><abbr title="Changeset">Chgset</abbr></th>
          <th py:for="platform in config.platforms">$platform.name</th>
        </tr></thead>
        <tbody py:if="config.builds">
          <tr py:for="rev_num in config.revisions"
              py:with="rev = config.builds[rev_num]">
            <th class="chgset" scope="row">
              <a href="$rev.href" title="View Changeset">[$rev.display_rev]</a>
            </th><py:for each="platform in config.platforms"><py:choose>
            <td py:when="platform.id in rev" py:with="build = rev[platform.id]"
                class="$build.cls">
              <div class="info">
                <a href="$build.href" title="View build results">
                  $build.id
                  ${build_status(build.status)}
                </a>
                ${slave_info(build.slave)}
		${build_time(build)}
              </div>
              ${build_steps(build.steps)}
            </td>
            <td py:otherwise="">&mdash;</td></py:choose></py:for>
          </tr>
        </tbody>
      </table>
      <br style="clear: right"/>

    </py:when><py:when test="'view-inprogress'">
      <py:for each="config in configs">
      <h2 class="config ${not config.active and 'deactivated' or ''}">
        <a href="$config.href">$config.label</a>
      </h2>
      <table class="listing" id="builds">
        <thead><tr>
          <th class="chgset" abbrev="Changeset">Chgset</th><th>Build</th>
        </tr></thead><tbody>
        <tr py:for="build in config.builds">
          <th class="chgset" scope="row">
            <a href="$build.rev_href" title="View Changeset">[$build.rev]</a>
          </th>
          <td class="$build.cls">
            <div class="info">
              <a href="$build.href" title="View build results">
                $build.id: <strong class="status">$build.platform</strong>
              </a>
              ${slave_info(build.slave)}
              ${build_time(build)}
            </div>
            ${build_steps(build.steps)}
          </td>
        </tr></tbody>
      </table></py:for></py:when>
    </py:choose></div>
  </body>
</html>