This file is indexed.

/usr/share/koji-web/scripts/hostinfo.chtml is in koji-servers 1.10.0-1.

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
#from kojiweb import util

#include "includes/header.chtml"

  <h4>Information for host <a href="hostinfo?hostID=$host.id">$host.name</a></h4>

  <table>
    <tr>
      <th>Name</th><td>$host.name</td>
    </tr>
    <tr>
      <th>ID</th><td>$host.id</td>
    </tr>
    <tr>
      <th>Arches</th><td>$host.arches</td>
    </tr>
    <tr>
      <th>Capacity</th><td>$host.capacity</td>
    </tr>
    <tr>
      <th>Task Load</th><td><a href="tasks?hostID=$host.id">#echo '%.2f' % $host.task_load#</a></td>
    </tr>
    <tr>
      <th>Description</th><td class="usertext">$util.escapeHTML($host.description)</td>
    </tr>
    <tr>
      <th>Comment</th><td class="usertext">$util.escapeHTML($host.comment)</td>
    </tr>
    <tr>
      #set $enabled = $host.enabled and 'yes' or 'no'
      <th>Enabled?</th>
      <td class="$enabled">
        $util.imageTag($enabled)
        #if 'admin' in $perms
        #if $host.enabled
        <span class="adminLink">(<a href="disablehost?hostID=$host.id$util.authToken($self)">disable</a>)</span>
        #else
        <span class="adminLink">(<a href="enablehost?hostID=$host.id$util.authToken($self)">enable</a>)</span>
        #end if
        #end if
      </td>
    </tr>
    <tr>
      #set $ready = $host.ready and 'yes' or 'no'
      <th>Ready?</th><td class="$ready">$util.imageTag($ready)</td>
    </tr>
    <tr>
      <th>Last Update</th><td>$util.formatTime($lastUpdate)</td>
    </tr>
    <tr>
      <th>Channels</th>
      <td>
        #for $channel in $channels
        <a href="channelinfo?channelID=$channel.id">$channel.name</a><br/>
        #end for
        #if not $channels
        No channels
        #end if
      </td>
    </tr>
    <tr>
      <th>Active Buildroots</th>
      #if $buildroots
      <td class="container">
        <table class="nested data-list">
          <tr class="list-header">
            <th>Buildroot</th><th>Created</th><th>State</th>
          </tr>
          #for $buildroot in $buildroots
          <tr class="$util.rowToggle($self)">
            <td><a href="buildrootinfo?buildrootID=$buildroot.id">$buildroot.tag_name-$buildroot.id-$buildroot.repo_id</a></td>
            <td>$util.formatTime($buildroot.create_event_time)</td>
            <td>$util.imageTag($util.brStateName($buildroot.state))</td>
          </tr>
          #end for
        </table>
      </td>
      #else
      <td>
        No buildroots
      </td>
      #end if
    </tr>
    #if 'admin' in $perms
    <tr>
      <td colspan="2"><a href="hostedit?hostID=$host.id$util.authToken($self)">Edit host</a></td>
    </tr>
    #end if
  </table>

#include "includes/footer.chtml"