Skip to content

Commit

Permalink
Show the most recent log lines on the main page
Browse files Browse the repository at this point in the history
  • Loading branch information
mafik committed Jun 11, 2023
1 parent 236c344 commit aaf2b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ function ToggleAutoRefresh() {
"onclick=\"ToggleAutoRefresh()\">Toggle Auto-refresh</button></h1>";
config_table.RenderTABLE(html, opts);
devices_table.RenderTABLE(html, opts);
log_table.RenderTABLE(html, opts);
Table::RenderOptions log_opts = opts;
log_opts.row_offset = std::max<int>(0, messages.size() - opts.row_limit);
log_table.RenderTABLE(html, log_opts);
dhcp::table.RenderTABLE(html, opts);
dns::table.RenderTABLE(html, opts);
html += "</body></html>";
Expand Down

0 comments on commit aaf2b0b

Please sign in to comment.