Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
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"> | |
5e99888b | 27 | {ts}This screen presents the list of most recent 1,000 scheduled jobs log entries.{/ts} {$docLink} |
6a488035 TO |
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 back-icon"></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*} | |
4d17a233 CW |
42 | {include file="CRM/common/enableDisableApi.tpl"} |
43 | {include file="CRM/common/crmeditable.tpl"} | |
16850d34 | 44 | <table class="selector row-highlight"> |
6a488035 TO |
45 | <tr class="columnheader"> |
46 | <th >{ts}Date{/ts}</th> | |
47 | <th >{ts}Job Name{/ts}</th> | |
48 | <th >{ts}Command{/ts}/{ts}Job Status{/ts}/{ts}Additional Information{/ts}</th> | |
49 | </tr> | |
50 | {foreach from=$rows item=row} | |
4d17a233 | 51 | <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}"> |
6a488035 TO |
52 | <td class="crm-joblog-run_datetime">{$row.run_time}</td> |
53 | <td class="crm-joblog-name">{$row.name}</td> | |
54 | <td class="crm-joblog-details"> | |
55 | <div class="crm-joblog-command">{$row.command}</div> | |
56 | {if $row.description}<div class="crm-joblog-description"><span class="bold">Summary</span><br/>{$row.description}</div>{/if} | |
57 | {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} | |
58 | </td> | |
59 | </tr> | |
60 | {/foreach} | |
61 | </table> | |
62 | {/strip} | |
63 | ||
64 | </div> | |
65 | {elseif $action ne 1} | |
66 | <div class="messages status no-popup"> | |
67 | <div class="icon inform-icon"></div> | |
68 | {if $jobId} | |
69 | {ts}This scheduled job does not have any log entries.{/ts} | |
70 | {else} | |
71 | {ts}There are no scheduled job log entries.{/ts} | |
72 | {/if} | |
73 | </div> | |
74 | {/if} | |
75 | ||
76 | <div class="action-link"> | |
77 | <a href="{crmURL p='civicrm/admin/job' q="reset=1"}" id="jobsList-bottom" class="button"><span><div class="icon back-icon"></div>{ts}Back to Scheduled Jobs Listing{/ts}</span></a> | |
78 | </div> |