| 2 | | <ul class="sf_admin_td_actions"> |
|---|
| 3 | | <li><?php echo link_to(image_tag('/sf/sf_admin/images/edit_icon.png', array('alt' => __('edit'), 'title' => __('edit'))), 'sfJob/edit?id='.$sf_job->getId()) ?></li> |
|---|
| 4 | | <?php if (!in_array($sf_job->getStatus(), array(sfJob::SUCCESS, sfJob::CANCELLED, sfJob::ERROR))): ?> |
|---|
| | 2 | <?php |
|---|
| | 3 | if (!in_array($sf_job->getStatus(), array(sfJob::SUCCESS, sfJob::CANCELLED, sfJob::ERROR, sfJob::RUNNING)) |
|---|
| | 4 | || ($sf_job->getCompletedAt() === null)): |
|---|
| | 5 | ?> |
|---|
| | 6 | <ul class="sf_admin_td_actions"> |
|---|
| | 7 | <li><?php echo link_to(image_tag('/sf/sf_admin/images/edit_icon.png', array('alt' => __('edit'), 'title' => __('edit'))), 'sfJob/edit?id='.$sf_job->getId()) ?></li> |
|---|
| 6 | | <?php endif; ?> |
|---|
| 7 | | <li><?php echo link_to(image_tag('/sf/sf_admin/images/next.png', array('alt' => __('Run job'), 'title' => __('Run job'), 'onclick' => "return confirm('Please be aware that it may take several minutes until this action will finish. If the job to be run is huge, it may overload your webserver. In this case, you will prefer to run this job using the asynchronous job queue manager.')")), 'sfJob/run?id='.$sf_job->getId()) ?></li> |
|---|
| 8 | | </ul> |
|---|
| | 9 | <li><?php echo link_to(image_tag('/sf/sf_admin/images/next.png', array('alt' => __('Run job'), 'title' => __('Run job'), 'onclick' => "return confirm('Please be aware that it may take several minutes until this action will finish. If the job to be run is huge, it may overload your webserver. In this case, you will prefer to run this job using the asynchronous job queue manager.')")), 'sfJob/run?id='.$sf_job->getId()) ?></li> |
|---|
| | 10 | </ul> |
|---|
| | 11 | <?php endif; ?> |
|---|