Skip to content

Commit

Permalink
node-control: style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Oct 13, 2024
1 parent 5d15a77 commit 4cb7041
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@
[% log_failed = 0 %]
<script>
logs_menu['[% s.peer_key | html %]'] = [
[% FOREACH l = s.logs.keys.sort %]
[% FOREACH l = ["install", "update", "cleanup"]; NEXT UNLESS s.logs.defined(l) %]
{
'icon': "fa-file-lines [% IF s.logs.$l.failed; log_failed = 1 %]textALERT[% END %]",
'label': "[% l | html %].log [% IF s.logs.$l.time %]([% date_format(c, s.logs.$l.time) %])[% END %]",
'label': "<div class='flexrow flex-nowrap gap-x-1'><div class='w-20'>[% l | html %].log</div>[% IF s.logs.$l.time %]<div class='textHINTsoft text-right'>([% date_format(c, s.logs.$l.time) %])</div>[% END %]</div>",
'href': "node_control.cgi?action=log&type=[% l | html %]&peer=[% s.peer_key | html %]",
'onclick': "openModalWindowUrl('node_control.cgi?action=log&type=[% l | html %]&peer=[% s.peer_key | html %]&modal=1'); return false;"
}[% UNLESS loop.last %],[% END %]
Expand Down

0 comments on commit 4cb7041

Please sign in to comment.