[%# Listing of all users who have access to a bug
  # License: Dual-license MPL 1.1+ or GPL 3.0+
  # Author(s): Vitaliy Filippov %]

[% INCLUDE global/header.html.tmpl title = "$terms.Bug $bug.id - Check access" %]

<h2>[% IF user_list.size > 0 %][% user_list.size %] [%+ user_list.size > 1 ? 'users' : 'user' %][% ELSE %]Everyone[% END %] can see <a href="show_bug.cgi?id=[% bug.id %]">[% terms.Bug _ " " _ bug.id %]</a></h2>

[% IF user_list.size > 0 %]
<hr/>

<table>
    <thead>
        <tr>
            <th align="left">User login (email)</th>
            <th align="left">User name</th>
        </tr>
    </thead>
    <tbody>
        [% FOREACH user = user_list %]
        <tr>
            <td>[% user.1 | html %]</td><td>[% user.2 | html %]</td>
        </tr>
        [% END %]
    </tbody>
</table>
[% END %]
<hr/>

<p><a href="show_bug.cgi?id=[% bug.id %]">Back to [% terms.bug %] form</a></p>

[% INCLUDE global/footer.html.tmpl %]
