Changeset 4721

Show
Ignore:
Timestamp:
08/06/07 15:39:53 (6 years ago)
Author:
gregmac
Message:

Add tooltip text to notification icons, fix spacing issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/dashboard/dashboard.css

    r4719 r4721  
    3030/* headings */ 
    3131.infobox h4 , .infobox h3 { 
    32   margin-bottom:0
     32  margin-bottom:8px
    3333  margin-top:5px; 
    3434} 
     
    8989  list-style-type:none; 
    9090  padding-left:0; 
     91  margin:0; 
    9192} 
    9293#syslog ul li { 
    9394  position:relative; 
    94   padding-left:18px; 
    9595  margin-bottom:0.2em; 
    9696  border-bottom:1px dashed #ccc; 
     
    109109  cursor:pointer; 
    110110} 
    111 #syslog ul li.notify_critical { 
    112   background-image:url(images/notify_critical.png); 
    113   background-repeat:no-repeat; 
    114 } 
    115 #syslog ul li.notify_security { 
    116   background-image:url(images/notify_security.png); 
    117   background-repeat:no-repeat; 
    118 } 
    119111#syslog ul li.notify_critical>div, #syslog ul li.notify_security>div { 
    120112  /*background:#F7181C;*/ 
     
    124116  color:white; 
    125117} 
    126 #syslog ul li.notify_update { 
    127   background-image:url(images/notify_update.png); 
    128   background-repeat:no-repeat; 
    129 
    130 #syslog ul li.notify_error { 
    131   background-image:url(images/notify_error.png); 
    132   background-repeat:no-repeat; 
    133 
    134 #syslog ul li.notify_warning { 
    135   background-image:url(images/notify_warning.png); 
    136   background-repeat:no-repeat; 
    137 
    138 #syslog ul li.notify_notice { 
    139   background-image:url(images/notify_notice.png); 
    140   background-repeat:no-repeat; 
    141 
     118/* 
    142119 
    143120/* 
  • modules/branches/2.3/dashboard/module.xml

    r4719 r4721  
    1818  </depends> 
    1919  <changelog> 
    20     *0.3.1* Fix issue with miscounting total registrations, styling of notification details 
     20    *0.3.1* Fix issue with miscounting total registrations, minor styling details 
    2121    *0.3* Show IP phones and trunks separately (#2209) 
    2222    *0.2.5.4* make always accessible even in database mode, fix minor javascript bug 
  • modules/branches/2.3/dashboard/page.index.php

    r4712 r4721  
    266266  global $sysinfo; 
    267267  global $astinfo; 
    268   $out = '<table>'; 
     268  $out = "<h3>"._("&nbsp ")."</h3></br>"; 
     269  $out .= '<table>'; 
    269270  /* 
    270271  $out .= '<tr><th>Distro:</th><td>'.$sysinfo->distro().'</td></tr>'; 
     
    274275  */ 
    275276   
    276   $out .= "<h3>"._("&nbsp ")."</h3></br>"; 
    277277  $out .= '<tr><th>'._('System Uptime').':</th><td>'.time_string($sysinfo->uptime()).'</td></tr>'; 
    278278  $ast_uptime = $astinfo->get_uptime(); 
     
    350350  $out = ''; 
    351351  $checksum = ''; 
    352    
    353   $notify_classes = array( 
     352 
     353  // notify_classes are also used as the image names 
     354  $notify_classes = array(  
    354355    NOTIFICATION_TYPE_CRITICAL => 'notify_critical', 
    355356    NOTIFICATION_TYPE_SECURITY => 'notify_security', 
     
    358359    NOTIFICATION_TYPE_WARNING => 'notify_warning', 
    359360    NOTIFICATION_TYPE_NOTICE => 'notify_notice', 
     361  ); 
     362  $notify_descriptions = array( 
     363    NOTIFICATION_TYPE_CRITICAL => _('Critical Error'), 
     364    NOTIFICATION_TYPE_SECURITY => _('Security Update'), 
     365    NOTIFICATION_TYPE_UPDATE => _('Update'), 
     366    NOTIFICATION_TYPE_ERROR => _('Error'), 
     367    NOTIFICATION_TYPE_WARNING => _('Warning'), 
     368    NOTIFICATION_TYPE_NOTICE => _('Notice'), 
    360369  ); 
    361370   
     
    380389      } 
    381390      $out .= '><div>'; 
    382        
    383       $out .= '<h4 class="syslog_text"><span>'.$item['display_text'].'</span>'; 
     391 
     392      $out .= '<h4 class="syslog_text">'; 
     393      $out .= '<img src="images/'.$notify_classes[$item['level']].'" alt="'.$notify_descriptions[$item['level']].'" title="'.$notify_descriptions[$item['level']].'" width="16" height="16" border="0" />&nbsp;'; 
     394      $out .= '<span>'.$item['display_text'].'</span>'; 
    384395      $out .= '<div class="notification_buttons">'; 
    385396      if (isset($item['candelete']) && $item['candelete']) {