367b0f5b1b113bd9d63029dcd56bc8dcb12cd4da
[civicrm-core.git] / templates / CRM / Admin / Page / JobLog.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 <div class="help">
11 {ts}This screen presents the list of most recent 1,000 scheduled jobs log entries.{/ts} {$docLink}
12 </div>
13
14 <div class="crm-content-block crm-block">
15
16 {if $jobId}
17 <h3>{ts}List of log entries for:{/ts} {$jobName}</h3>
18 {/if}
19
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" aria-hidden="true"></i> {ts}Back to Scheduled Jobs Listing{/ts}</span></a>
22 </div>
23
24 {if $rows}
25 <div id="ltype">
26 {strip}
27 {* handle enable/disable actions*}
28 {include file="CRM/common/enableDisableApi.tpl"}
29 <table class="selector row-highlight">
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}
36 <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}">
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
49 </div>
50 {elseif $action ne 1}
51 <div class="messages status no-popup">
52 {icon icon="fa-info-circle"}{/icon}
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
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" aria-hidden="true"></i> {ts}Back to Scheduled Jobs Listing{/ts}</span></a>
63 </div>
64 </div>