Ignore:
Timestamp:
04/24/13 15:50:30 (8 years ago)
Author:
ramonb
Message:

libtoga.php:

  • calculate parsetime

templates/footer.tpl:

  • made parsetime optional

index.php:

  • don't show parsetime for archive: not applicable

overview.php:

  • assign parsetime
  • closes #161
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/web/addons/job_monarch/index.php

    r821 r836  
    435435function makeFooter()
    436436{
    437     global $dwoo, $version, $parsetime, $monarchversion;
     437    global $dwoo, $version, $parsetime, $monarchversion, $view;
    438438
    439439    $tpl = new Dwoo_Template_File("templates/footer.tpl");
     
    454454    }
    455455
    456     $tpl_data->assign("parsetime", sprintf("%.4f", $parsetime) . "s");
     456    if( isset( $parsetime ) && ($view !== "search" ) )
     457    {
     458        $tpl_data->assign("showparsetime", "yes" );
     459        $tpl_data->assign("parsetime", sprintf("%.4f", $parsetime) . "s");
     460    }
    457461
    458462    $dwoo->output($tpl, $tpl_data);
Note: See TracChangeset for help on using the changeset viewer.