Skip to content

Commit

Permalink
fix host background color
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmu committed Jul 27, 2023
1 parent 39d2a3a commit e98eb6c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/_status_detail_table.tt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
</thead>
<tbody>
[% SET lasthost = '' %]
[% SET prev_host_empty = '' %]
[% FOREACH s = data %]
[% IF s.has_been_checked == 0 %]
[% state = 'PENDING' %]
Expand All @@ -81,6 +82,7 @@

<tr id="[% paneprefix %]r[% loop.index %]"[% UNLESS authorized_for_read_only %] onmouseover="addRowSelector(this.id, 'service')"[% END %] class="[% rowclasses %]">
[% IF lasthost == s.host_name %]
[% SET prev_host_empty = "yes" %]
<td class='host_name col_host_name border-t-0 border-b-0 bgTable'></td>
[% ELSE %]
[% SET host_comment_count = 0 %]
Expand All @@ -91,7 +93,12 @@
[% ELSIF s.host_state == 2 %]
[% hoststate = 'UNREACHABLE' %]
[% END %]
<td class='host_name col_host_name [% hoststate %]'>
[% IF prev_host_empty == "yes" %]
[% SET prev_host_empty = " rowOdd" %]
[% ELSE %]
[% SET prev_host_empty = '' %]
[% END %]
<td class='host_name col_host_name [% hoststate %][% prev_host_empty %]'>
<div class="status col_host_name flex items-center min-w-max">
<div class="flex-1">
<a class="link" href="extinfo.cgi?type=1&amp;host=[% s.host_name | uri %]" title="[% s.host_address | html %] - [% s.host_alias | html %]">[% _shost(s) | html %]</a>
Expand Down

0 comments on commit e98eb6c

Please sign in to comment.