Ignore:
Timestamp:
04/07/06 16:37:34 (18 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/conf.php:

  • added COLUMN_QUEUED option

web/addons/job_monarch/templates/overview.tpl:

  • changed table spacing to more compact
  • added Queued column template blocks

web/addons/job_monarch/overview.php:

  • added queued column blocks
File:
1 edited

Legend:

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

    r241 r242  
    2424
    2525global $GANGLIA_PATH, $clustername, $tpl, $filter, $cluster, $get_metric_string, $cluster_url, $sh;
    26 global $hosts_up, $m, $start, $end, $filterorder, $COLUMN_REQUESTED_MEMORY;
     26global $hosts_up, $m, $start, $end, $filterorder, $COLUMN_REQUESTED_MEMORY, $COLUMN_QUEUED;
    2727
    2828//$tpl->assign("_ROOT.summary", "" );
     
    465465        global $cluster_url, $get_metric_string, $host_url, $metrics;
    466466        global $start, $end, $reports, $gnodes, $default_showhosts;
    467 
     467        global $COLUMN_QUEUED, $COLUMN_REQUESTED_MEMORY;
    468468        $metricname = $m;
    469469
     
    510510
    511511        if( $COLUMN_REQUESTED_MEMORY ) {
    512                 $tpl->newBlock( "column_req_mem" );
    513                 $tpl->gotoBlock( "node" );
     512                $tpl->newBlock( "column_header_req_mem" );
     513        }
     514
     515        if( $COLUMN_QUEUED ) {
     516                $tpl->newBlock( "column_header_queued" );
    514517        }
    515518
     
    607610                                        $tpl->newBlock( "column_req_mem" );
    608611                                        $tpl->assign( "req_memory", $jobs[$jobid][requested_memory] );
     612                                        $tpl->gotoBlock( "node" );
     613                                }
     614
     615                                if( $COLUMN_QUEUED ) {
     616                                        $tpl->newBlock( "column_queued" );
     617                                        $tpl->assign( "queued", $jobs[$jobid][queued] );
    609618                                        $tpl->gotoBlock( "node" );
    610619                                }
Note: See TracChangeset for help on using the changeset viewer.