Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
f6eedce7 | 10 | <div class="help"> |
5e99888b | 11 | {ts}This screen presents the list of most recent 1,000 scheduled jobs log entries.{/ts} {$docLink} |
6a488035 TO |
12 | </div> |
13 | ||
036aa39d MR |
14 | <div class="crm-content-block crm-block"> |
15 | ||
6a488035 | 16 | {if $jobId} |
036aa39d | 17 | <h3>{ts}List of log entries for:{/ts} {$jobName}</h3> |
6a488035 TO |
18 | {/if} |
19 | ||
036aa39d MR |
20 | <div class="action-link"> |
21 | <a href="{crmURL p='civicrm/admin/job' q="reset=1"}" id="jobsList-top" class="button"><span><i class="crm-i fa-chevron-left"></i> {ts}Back to Scheduled Jobs Listing{/ts}</span></a> | |
22 | </div> | |
6a488035 TO |
23 | |
24 | {if $rows} | |
036aa39d | 25 | <div id="ltype"> |
6a488035 TO |
26 | {strip} |
27 | {* handle enable/disable actions*} | |
4d17a233 | 28 | {include file="CRM/common/enableDisableApi.tpl"} |
16850d34 | 29 | <table class="selector row-highlight"> |
6a488035 TO |
30 | <tr class="columnheader"> |
31 | <th >{ts}Date{/ts}</th> | |
32 | <th >{ts}Job Name{/ts}</th> | |
33 | <th >{ts}Command{/ts}/{ts}Job Status{/ts}/{ts}Additional Information{/ts}</th> | |
34 | </tr> | |
35 | {foreach from=$rows item=row} | |
4d17a233 | 36 | <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}"> |
6a488035 TO |
37 | <td class="crm-joblog-run_datetime">{$row.run_time}</td> |
38 | <td class="crm-joblog-name">{$row.name}</td> | |
39 | <td class="crm-joblog-details"> | |
40 | <div class="crm-joblog-command">{$row.command}</div> | |
41 | {if $row.description}<div class="crm-joblog-description"><span class="bold">Summary</span><br/>{$row.description}</div>{/if} | |
42 | {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} | |
43 | </td> | |
44 | </tr> | |
45 | {/foreach} | |
46 | </table> | |
47 | {/strip} | |
48 | ||
036aa39d | 49 | </div> |
6a488035 TO |
50 | {elseif $action ne 1} |
51 | <div class="messages status no-popup"> | |
52 | <div class="icon inform-icon"></div> | |
53 | {if $jobId} | |
54 | {ts}This scheduled job does not have any log entries.{/ts} | |
55 | {else} | |
56 | {ts}There are no scheduled job log entries.{/ts} | |
57 | {/if} | |
58 | </div> | |
59 | {/if} | |
60 | ||
036aa39d MR |
61 | <div class="action-link"> |
62 | <a href="{crmURL p='civicrm/admin/job' q="reset=1"}" id="jobsList-bottom" class="button"><span><i class="crm-i fa-chevron-left"></i> {ts}Back to Scheduled Jobs Listing{/ts}</span></a> | |
63 | </div> | |
1188c7a8 | 64 | </div> |