Ticket #3368: page.index.php.patch
| File page.index.php.patch, 2.3 kB (added by Nick_Lewis, 3 years ago) |
|---|
-
page.index.php
old new 280 280 function show_sysinfo() { 281 281 global $sysinfo; 282 282 global $astinfo; 283 $out = "<h3>"._("Uptime")."</h3>< /br>";284 $out .= '<table >';283 $out = "<h3>"._("Uptime")."</h3><br />"; 284 $out .= '<table summary="system information table">'; 285 285 /* 286 286 $out .= '<tr><th>Distro:</th><td>'.$sysinfo->distro().'</td></tr>'; 287 287 $out .= '<tr><th>Kernel:</th><td>'.$sysinfo->kernel().'</td></tr>'; … … 404 404 405 405 $domid = "notify_item_".str_replace(' ','_',$item['module']).'_'.str_replace(' ','_',$item['id']); 406 406 407 $out .= "\n"; 407 408 $out .= '<li id="'.$domid.'" '; 408 409 if (isset($notify_classes[$item['level']])) { 409 410 $out .= ' class="'.$notify_classes[$item['level']].'"'; 410 411 } 411 412 $out .= '><div>'; 412 413 $out .= '<h4 class="syslog_text">'; 413 414 $out .= '<div class="syslog_text">'; 415 $out .= '<h4>'; 414 416 $out .= '<span><img src="images/'.$notify_classes[$item['level']].'.png" alt="'.$notify_descriptions[$item['level']].'" title="'.$notify_descriptions[$item['level']].'" width="16" height="16" border="0" /> '; 415 417 $out .= $item['display_text'].'</span>'; 418 $out .= '</h4>'; 419 $out .= "\n"; 416 420 $out .= '<div class="notification_buttons">'; 417 421 if (isset($item['candelete']) && $item['candelete']) { 418 422 $out .= '<a class="notify_ignore_btn" title="'._('Delete this').'" '. … … 425 429 '<img src="'.dirname($_SERVER['PHP_SELF']).'/images/notify_delete.png" width="16" height="16" border="0" alt="'._('Ignore this').'" /></a>'; 426 430 } 427 431 $out .= '</div>'; 428 $out .= '</ h4>';429 432 $out .= '</div>'; 433 $out .= "\n"; 430 434 $out .= '<div class="syslog_detail">'; 431 435 $out .= nl2br($item['extended_text']); 432 436 $out .= '<br/><span>'.sprintf('Added %s ago', time_string(time() - $item['timestamp'])).'<br/>'. … … 498 502 if (!$quietmode) { 499 503 ?> 500 504 501 <script language="javascript">505 <script type="text/javascript"> 502 506 $(document).ready(function(){ 503 507 $.ajaxTimeout( 20000 ); 504 508 scheduleInfoUpdate(); … … 509 513 510 514 function makeSyslogClickable() { 511 515 $('#syslog h4 span').click(function() { 512 $(this).parent(). next('div').slideToggle('fast');516 $(this).parent().parent().next('div').slideToggle('fast'); 513 517 }); 514 518 } 515 519
