Changeset 306 for trunk


Ignore:
Timestamp:
04/16/07 17:56:08 (17 years ago)
Author:
bastiaans
Message:

web/templates/job_monarch/cluster_extra.tpl:

  • removed text: is now incorporated in cluster image

web/addons/job_monarch/libtoga.php:

  • added: joblist text
Location:
trunk/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r305 r306  
    10421042                }
    10431043
    1044                 //printf( "imagecreate: %dx%d", ($nodes_per_row*$node_width), ($node_rows*$node_width) );
    1045                 //$image = imageCreateTrueColor( ($nodes_per_row*$node_width)+1, ($node_rows*$node_width)+1 );
    1046                 $image = imageCreateTrueColor( $max_width, ($node_rows*$node_width)+1 );
     1044                $y_offset       = 0;
     1045                $font           = 2;
     1046                $fontheight     = ImageFontHeight( $font );
     1047                $fontspaceing   = 2;
     1048                $y_offset       = $fontheight + (2 * $fontspaceing);
     1049
     1050                $image = imageCreateTrueColor( $max_width, ($y_offset + (($node_rows*$node_width)+1) ) );
    10471051                $colorwhite = imageColorAllocate( $image, 255, 255, 255 );
    10481052                imageFill( $image, 0, 0, $colorwhite );
     1053
     1054                if( $this->isSmall() ) {
     1055
     1056                        $colorblue      = imageColorAllocate( $image, 0, 0, 255 );
     1057
     1058                        imageString( $image, $font, 2, 2, "Monarch Joblist - cluster: ".$this->clustername, $colorblue );
     1059                }
    10491060
    10501061                $jobs = $mydatag->getJobs();
     
    10591070                       
    10601071                                $x = ($m * $node_width);
    1061                                 $y = ($n * $node_width);
     1072                                $y = $y_offset + ($n * $node_width);
    10621073
    10631074                                $cur_node = ($n * $nodes_per_row) + ($m);
    10641075                                $host = $nodes_hosts[$cur_node];
    1065 
    10661076
    10671077                                if( isset( $nodes[$host] ) ) {
  • trunk/web/templates/job_monarch/cluster_extra.tpl

    r213 r306  
    1 <hr>
    2 <table>
    3 <tr>
    4  <td valign=center>
    5   <a href="./addons/job_monarch/?c={cluster}"><b>Joblist</b></a>
    6  </td>
    7 </tr>
    8 <tr>
    9  <td>
    10   <a href="./addons/job_monarch/?c={cluster}">
    11   <IMG SRC="./addons/job_monarch/image.php?c={cluster}&view=small-clusterimage" BORDER=0>
    12   </a>
    13  </td>
    14 </tr>
    15 </table>
     1<HR>
     2<A HREF="./addons/job_monarch/?c={cluster}">
     3<IMG SRC="./addons/job_monarch/image.php?c={cluster}&view=small-clusterimage" BORDER=0>
     4</A>
Note: See TracChangeset for help on using the changeset viewer.