[!!!][BUGFIX] Separate sys_history from sys_log db entries
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Partials / RecordHistory / History.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2
3 <h2>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:changes')}</h2>
4 <div>
5 <f:be.infobox state="-1">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:differenceMsg') -> f:format.raw()}</f:be.infobox>
6 <table class="table table-striped table-hover table-vertical-top" id="typo3-history">
7 <thead>
8 <tr>
9 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:rollback')}</th>
10 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:time')}</th>
11 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:age')}</th>
12 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:user')}</th>
13 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:tableUid')}</th>
14 <th>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:differences')}</th>
15 </tr>
16 </thead>
17 <tbody>
18 <f:for each="{history}" as="historyRow">
19 <tr>
20 <td><span><span title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:sumUpChanges')}">
21 <a href="{historyRow.diffUrl}"><core:icon identifier="actions-document-history-open" /></a>
22 </span></span></td>
23 <td>{historyRow.time}</td>
24 <td>{historyRow.age}</td>
25 <td>
26 <be:avatar backendUser="{historyRow.backendUserUid}"/>
27 <f:if condition="{historyRow.backendUserUid}">
28 <f:then>
29 {historyRow.backendUserName}
30 </f:then>
31 <f:else>
32 {f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:externalChange')}
33 </f:else>
34 </f:if>
35 <f:if condition="{historyRow.originalBackendUserName}"> ({f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:viaUser')} {historyRow.originalBackendUserName})</f:if>
36 </td>
37 <td>
38 <a href="{elementUrl}" title="{f:translate('LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:linkRecordHistory')}">{historyRow.title}</a>
39 </td>
40 <td>
41 <f:switch expression="{historyRow.actiontype}">
42 <f:case value="1">
43 <strong>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:insert')}</strong>
44 </f:case>
45 <f:case value="4">
46 <strong>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:delete')}</strong>
47 </f:case>
48 <f:case value="5">
49 <strong>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:insert')}</strong>
50 </f:case>
51 </f:switch>
52 <f:if condition="{historyRow.fieldNames}">
53 {historyRow.fieldNames}
54 </f:if>
55 <f:if condition="{historyRow.differences}">
56 <f:render partial="RecordHistory/Diff" arguments="{differences: historyRow.differences}"/>
57 </f:if>
58 </td>
59 </tr>
60 </f:for>
61 </tbody>
62 </table>
63 <f:if condition="{fullViewUrl}">
64 <br/>
65 <a href="{fullViewUrl}" class="btn btn-default">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:fullView')}</a>
66 </f:if>
67 <br/>
68 <br/>
69 </div>