| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | <div id="help"> |
| 27 | {ts}This screen presents the list of most recent 1,000 scheduled jobs log entries.{/ts} {$docLink} |
| 28 | </div> |
| 29 | |
| 30 | {if $jobId} |
| 31 | <h1>{ts}List of log entries for:{/ts} {$jobName}</h1> |
| 32 | {/if} |
| 33 | |
| 34 | <div class="action-link"> |
| 35 | <a href="{crmURL p='civicrm/admin/job' q="reset=1"}" id="jobsList-top" class="button"><span><div class="icon ui-icon-arrowreturnthick-1-w"></div>{ts}Back to Scheduled Jobs Listing{/ts}</span></a> |
| 36 | </div> |
| 37 | |
| 38 | {if $rows} |
| 39 | <div id="ltype"> |
| 40 | {strip} |
| 41 | {* handle enable/disable actions*} |
| 42 | {include file="CRM/common/enableDisableApi.tpl"} |
| 43 | <table class="selector row-highlight"> |
| 44 | <tr class="columnheader"> |
| 45 | <th >{ts}Date{/ts}</th> |
| 46 | <th >{ts}Job Name{/ts}</th> |
| 47 | <th >{ts}Command{/ts}/{ts}Job Status{/ts}/{ts}Additional Information{/ts}</th> |
| 48 | </tr> |
| 49 | {foreach from=$rows item=row} |
| 50 | <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}"> |
| 51 | <td class="crm-joblog-run_datetime">{$row.run_time}</td> |
| 52 | <td class="crm-joblog-name">{$row.name}</td> |
| 53 | <td class="crm-joblog-details"> |
| 54 | <div class="crm-joblog-command">{$row.command}</div> |
| 55 | {if $row.description}<div class="crm-joblog-description"><span class="bold">Summary</span><br/>{$row.description}</div>{/if} |
| 56 | {if $row.data}<div class="crm-joblog-data" style="border-top:1px solid #ccc; margin-top: 10px;"><span class="bold">Details</span><br/><pre>{$row.data}</pre></div>{/if} |
| 57 | </td> |
| 58 | </tr> |
| 59 | {/foreach} |
| 60 | </table> |
| 61 | {/strip} |
| 62 | |
| 63 | </div> |
| 64 | {elseif $action ne 1} |
| 65 | <div class="messages status no-popup"> |
| 66 | <div class="icon inform-icon"></div> |
| 67 | {if $jobId} |
| 68 | {ts}This scheduled job does not have any log entries.{/ts} |
| 69 | {else} |
| 70 | {ts}There are no scheduled job log entries.{/ts} |
| 71 | {/if} |
| 72 | </div> |
| 73 | {/if} |
| 74 | |
| 75 | <div class="action-link"> |
| 76 | <a href="{crmURL p='civicrm/admin/job' q="reset=1"}" id="jobsList-bottom" class="button"><span><div class="icon ui-icon-arrowreturnthick-1-w"></div>{ts}Back to Scheduled Jobs Listing{/ts}</span></a> |
| 77 | </div> |