2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div id="changeLog" class="view-content">
28 <div class="bold">{ts}Change Log:{/ts} {$displayName}</div>
31 <div class='instance_data'><div class="crm-loading-element"></div></div>
33 <div class="form-item">
36 <tr class="columnheader"><th>{ts}Changed By{/ts}</th><th>{ts}Change Date{/ts}</th></tr>
37 {foreach from=$log item=row}
38 <tr class="{cycle values="odd-row,even-row"}">
39 <td> {$row.image} <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$row.id`"}">{$row.name}</a></td>
40 <td>{$row.date|crmDate}</td>
45 <div class="messages status no-popup">
46 <div class="icon inform-icon"></div>
57 <script type="text/javascript">
59 $('#changeLog .instance_data').on('crmLoad', function(e, data) {
60 CRM.tabHeader.updateCount('#tab_log', data.totalRows);
62 CRM.reloadChangeLogTab = function(url) {
64 $('#changeLog .instance_data').crmSnippet({url: url});
66 $('#changeLog .instance_data').crmSnippet('refresh');
68 CRM.incrementChangeLogTab = function() {
69 CRM.tabHeader.updateCount('#tab_log', 1 + CRM.tabHeader.getCount('#tab_log'));
71 CRM.reloadChangeLogTab({/literal}"{$instanceUrl}"{literal});