3b562c64f039e79d3bb871f62a9a97f5e1006eee
[civicrm-core.git] / templates / CRM / Logging / ReportDetail.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="crm-block crm-content-block crm-report-form-block">
11 {if $rows}
12 {* todo: Is `raw` ever assigned to the template and why would it make a difference as to whether this div is present? The revert confirmation is handled (awkwardly) lower down by javascript $revertConfirm *}
13 {if $raw}
14 <div class="status">
15 <dl>
16 <dt>{icon icon="fa-info-circle"}{/icon}</dt>
17 <dd>
18 {ts}WARNING: Are you sure you want to revert the below changes?{/ts}
19 </dd>
20 </dl>
21 </div>
22 {/if}
23 <p>{ts 1=$whom_url 2=$whom_name|escape 3=$who_url 4=$who_name|escape 5=$log_date}Change to <a href='%1'>%2</a> made by <a href='%3'>%4</a> on %5:{/ts}</p>
24 {if $layout eq 'overlay'}
25 {include file="CRM/Report/Form/Layout/Overlay.tpl"}
26 {elseif !$chartEnabled || !$chartSupported}
27 {include file="CRM/Report/Form/Layout/Table.tpl"}
28 {/if}
29 {else}
30 <div class='messages status'>
31 {icon icon="fa-info-circle"}{/icon}{ts}This report can not be displayed because there are no relevant entries in the logging tables.{/ts}
32 </div>
33 {/if}
34 {if $layout neq 'overlay'}
35 <div class="action-link">
36 <a href="{$backURL}" class="button"><span><i class="crm-i fa-chevron-left" aria-hidden="true"></i> {ts}Back to Logging Summary{/ts}</span></a>
37 <a href="{$revertURL}" class="button" onclick="return confirm('{$revertConfirm}');"><span><i class="crm-i fa-undo" aria-hidden="true"></i> {ts}Revert These Changes{/ts}</span></a>
38 </div>
39 {/if}
40 </div>