= t("Maintenance Tasks") ?> 
  
    = t("Occasionally your Gallery will require some maintenance.  Here are some tasks you can use to keep it running smoothly.") ?>
  
  
     = t("Available Tasks") ?> 
    
   
  
     = t("Running Tasks") ?> 
    
      
        | 
          = t("Last Updated") ?>
         | 
        
          = t("Name") ?>
         | 
        
          = t("Status") ?>
         | 
        
          = t("Info") ?>
         | 
        
          = t("Action") ?>
         | 
      
       foreach ($running_tasks as $task): ?>
      ">
        | 
          = date("M j, Y H:i:s", $task->updated) ?>
         | 
        
          = $task->name ?>
         | 
        
           if ($task->done): ?>
           if ($task->state == "cancelled"): ?>
          = t("Cancelled") ?>
           endif ?>
          = t("Done") ?>
           elseif ($task->state == "stalled"): ?>
          = t("Stalled") ?>
           else: ?>
          = t("%percent_complete% Complete", array("percent_complete" => $task->percent_complete)) ?>
           endif ?>
         | 
        
          = $task->status ?>
         | 
        
           if ($task->state == "stalled"): ?>
          id?csrf=$csrf") ?>" class="gDialogLink">
            = t("resume") ?>
          
           endif ?>
          id?csrf=$csrf") ?>">
            = t("cancel") ?>
          
         | 
      
       endforeach ?>