Changeset 757


Ignore:
Timestamp:
03/26/13 21:54:43 (8 years ago)
Author:
ramonb
Message:
  • use css: auto overflow for RRDs
Location:
branches/0.4/web/addons/job_monarch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/overview.php

    r753 r757  
    11541154                    $cell    = "<td class=$class>".  "<b><a href=$host_link>$host</a></b><br>".  "<i>$metricname:</i> <b>$textval</b></td>";
    11551155                } else {
    1156                     $cell    = "<TD><DIV ID=\"monarchimage\"><A HREF=\"$host_link\">" . "<IMG SRC=\"./graph.php?$graphargs\" " . "ALT=\"$host\" BORDER=0  WIDTH=381 HEIGHT=148></A></DIV></TD>";
     1156                    $cell    = "<A HREF=\"$host_link\">" . "<IMG SRC=\"./graph.php?$graphargs\" " . "ALT=\"$host\" BORDER=0  WIDTH=381 HEIGHT=148></A>";
    11571157                }
    11581158
    11591159                $metric_loop["metric_image"] = $cell;
    11601160
    1161                 if(! ($i++ % $hostcols) )
    1162                 {
    1163                      $metric_loop["br"] = "</tr><tr>";
    1164                 }
     1161                //if(! ($i++ % $hostcols) )
     1162                //{
     1163                //     $metric_loop["br"] = "</tr><tr>";
     1164                //}
    11651165                $sorted_list[] = $metric_loop;
    11661166            }
  • branches/0.4/web/addons/job_monarch/styles.css

    r741 r757  
    44    background-repeat:no-repeat;
    55    background-position: center center;
     6    overflow:auto;
    67}
    78
  • branches/0.4/web/addons/job_monarch/templates/overview.tpl

    r753 r757  
    248248<TABLE>
    249249<TR>
     250<div id="monarchimage">
    250251{loop $sorted_list}
    251252{$metric_image}{$br}
    252253{/loop}
     254</div>
    253255</TR>
    254256</TABLE>
Note: See TracChangeset for help on using the changeset viewer.