/usr/share/sreview/templates/table.html.ep is in sreview-web 0.3.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 | %layout "default";
<h1><%= $header %></h1>
<table class='table table-hover'>
% if(defined($titlerow)) {
<tr>
% foreach my $cell(@$titlerow) {
<th><%= $cell %></th>
% }
</tr>
% }
% my $rowtype = 0;
% foreach my $row(@$rows) {
<tr>
% $rowtype = 1 - $rowtype;
% foreach my $cell(@$row) {
<td><%== $cell %></td>
% }
</tr>
% }
</table>
% if(defined($totals)) {
<h2>Totals</h2>
<table class='table table-hover'>
% if(defined($tottitrow)) {
<tr>
% foreach my $cell(@$tottitrow) {
<th><%= $cell %></th>
% }
</tr>
% }
% foreach my $row(@$totals) {
<tr>
% $rowtype = 1 - $rowtype;
% foreach my $cell(@$row) {
<td><%= $cell %></td>
% }
% }
</tr>
% }
</table>
|