Project

General

Profile

« Previous | Next » 

Revision 13474eee

Added by NOYB NOYB over 9 years ago

Status - System Logs - Sort Header

Fix header to not wrap the sort button/icon to the next row.
Add sort capability to the "raw" table.

View differences:

src/usr/local/www/status_logs.php
435 435
	   <div class="table-responsive">
436 436
		<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
437 437
			<thead>
438
				<tr>
438
				<tr style="white-space:nowrap;">
439 439
					<th><?=gettext("Time")?></th>
440 440
					<th><?=gettext("Process")?></th>
441
					<th class="col-md-1"><?=gettext("PID")?></th>
442
					<th><?=gettext("Message")?></th>
441
					<th><?=gettext("PID")?></th>
442
					<th style="width:100%"><?=gettext("Message")?></th>
443 443
				</tr>
444 444
			</thead>
445 445
			<tbody>
446 446
<?php
447 447
	foreach ($filterlog as $filterent) {
448 448
?>
449
				<tr>
450
					<td style="white-space:nowrap;">
449
				<tr style="white-space:nowrap;">
450
					<td>
451 451
						<?=htmlspecialchars($filterent['time'])?>
452 452
					</td>
453
					<td style="white-space:nowrap;">
453
					<td>
454 454
						<?=htmlspecialchars($filterent['process'])?>
455 455
					</td>
456
					<td style="white-space:nowrap;">
456
					<td>
457 457
						<?=htmlspecialchars($filterent['pid'])?>
458 458
					</td>
459 459
					<td style="word-wrap:break-word; word-break:break-all; white-space:normal">
......
480 480
<div class="panel panel-default">
481 481
	<div class="panel-heading"><h2 class="panel-title"><?=gettext("Last ")?><?=$nentries?> <?=gettext($allowed_logs[$logfile]["name"])?><?=gettext(" log entries")?></h2></div>
482 482
	<div class="table table-responsive">
483
		<table class="table table-striped table-hover">
483
		<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable>
484 484
			<thead>
485
				<tr>
485
				<tr style="white-space:nowrap;">
486 486
					<th><?=gettext("Time")?></th>
487 487
					<th style="width:100%"><?=gettext("Message")?></th>
488 488
				</tr>

Also available in: Unified diff