Changeset 266 for trunk/web


Ignore:
Timestamp:
06/26/06 13:38:27 (18 years ago)
Author:
bastiaans
Message:

jobmond/jobmond.py:

  • try to guess api 'pbs' for old configs

web/addons/job_monarch/index.php:

  • changed makeHeader() to check for page_call. this will prevent multiple Jobarchive link/images in the header, by multiple calls

web/addons/job_monarch/overview.php:

  • added makeHeader() call and filter[id] set. when only 1 job is found, it now automaticly jumps to show_hosts and sets correct filter in header html
Location:
trunk/web/addons/job_monarch
Files:
2 edited

Legend:

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

    r263 r266  
    8686}
    8787
    88 function makeHeader() {
     88function makeHeader( $page_call ) {
    8989
    9090        global $tpl, $grid, $context, $initgrid;
     
    317317        }
    318318
    319         if( $JOB_ARCHIVE ) {
     319        if( $JOB_ARCHIVE && $page_call == 'index' ) {
    320320                $tpl->newBlock( "search" );
    321321                $tpl->assignGlobal( "cluster_url", rawurlencode($clustername) );
     
    407407
    408408$title = "Torque Report";
    409 makeHeader();
     409makeHeader( 'index' );
    410410$tpl->assign("cluster_url", rawurlencode($clustername) );
    411411$tpl->assign("cluster", $clustername );
  • trunk/web/addons/job_monarch/overview.php

    r263 r266  
    720720        $tpl->assignGlobal("report_time", makeDate( $heartbeat));
    721721
    722         //if( intval($view_jobs) == 1 and $start_time )
    723         //      if( $last_displayed_job != null )
    724         //              $filter[id] = $last_displayed_job;
    725 
    726         //makeHeader();
     722        if( intval($view_jobs) == 1 and $start_time )
     723                if( $last_displayed_job != null )
     724                        $filter[id] = $last_displayed_job;
     725
     726        makeHeader( 'overview' );
    727727        setupFilterSettings();
    728728
Note: See TracChangeset for help on using the changeset viewer.