68176ae78a152bfdf88f834ce06be5082b9618f4
[Packages/TYPO3.CMS.git] / typo3 / sysext / belog / Resources / Private / Partials / Content / LogEntries.html
1 {namespace belog=TYPO3\CMS\Belog\ViewHelpers}
2
3 <f:if condition="{constraint.groupByPage}">
4 <div>
5 <h2>
6 <f:translate key="overview" />
7 </h2>
8 <f:translate
9 key="timeInfo"
10 arguments="{
11 0: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.startTimestamp}\')}',
12 1: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.endTimestamp}\')}'
13 }"
14 />
15 <p>
16 <f:for each="{groupedLogEntries}" as="pidEntry" key="pid">
17 <f:if condition="{pid} > 0">
18 <br />
19 <f:translate
20 key="pagenameWithUID"
21 arguments="{
22 0: '{belog:be.pagePath(pid:\'{pid}\')}',
23 1: '{pid}'
24 }"
25 />
26 </f:if>
27 </f:for>
28 </p>
29 </div>
30 </f:if>
31
32 <f:for each="{groupedLogEntries}" as="pidEntry" key="pid">
33 <div>
34 <h2>
35 <f:if condition="{constraint.groupByPage}">
36 <f:then>
37 <f:if condition="{pid} < 1">
38 <f:then>
39 <f:if condition="{pid} == -1">
40 <f:translate
41 key="logForNonPageRelatedActionsOrRootLevelOrPage"
42 arguments="{
43 0: '{f:translate(key:\'forNonPageRelatedActions\')}',
44 1: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.startTimestamp}\')}',
45 2: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.endTimestamp}\')}'
46 }"
47 />
48 </f:if>
49 <f:if condition="{pid} == 0">
50 <f:translate
51 key="logForNonPageRelatedActionsOrRootLevelOrPage"
52 arguments="{
53 0: '{f:translate(key:\'forRootLevel\')}',
54 1: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.startTimestamp}\')}',
55 2: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.endTimestamp}\')}'
56 }"
57 />
58 </f:if>
59 </f:then>
60 <f:else>
61 <f:comment>
62 Nest view helpers three times:
63 1. Feed pid as argument to be.pagePath
64 2. Use this as argument for 'forPage' translate
65 3. Use this as argument for 'logForNonPageRelatedActionsOrRootLevelOrPage' translate
66 </f:comment>
67 <f:translate
68 key="logForNonPageRelatedActionsOrRootLevelOrPage"
69 arguments="{
70 0: '{f:translate(
71 key:\'forPage\',
72 htmlEscape:\'0\',
73 arguments:\'{
74 0:\\\'{belog:be.pagePath(pid:\\\\\\\'{pid}\\\\\\\')}\\\',
75 1:\\\'{pid}\\\'
76 }\'
77 )}',
78 1: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.startTimestamp}\')}',
79 2: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.endTimestamp}\')}'
80 }"
81 />
82 </f:else>
83 </f:if>
84 </f:then>
85 <f:else>
86 <f:translate
87 key="logForNonPageRelatedActionsOrRootLevelOrPage"
88 arguments="{
89 0: '',
90 1: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.startTimestamp}\')}',
91 2: '{f:format.date(format:\'{settings.dateFormat} H:i\', date:\'@{constraint.endTimestamp}\')}'
92 }"
93 />
94 </f:else>
95 </f:if>
96 </h2>
97 <f:for each="{pidEntry}" as="day" key="dayTimestamp">
98 <h3>
99 <f:format.date format="{settings.dateFormat}">@{dayTimestamp}</f:format.date>
100 </h3>
101
102 <table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">
103 <thead>
104 <tr>
105 <th valign="top" class="t3-row-header">
106 <strong>
107 <f:translate key="chLog_l_error" />
108 </strong>
109 </th>
110 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
111 <th valign="top" class="t3-row-header">
112 <strong>
113 <f:translate key="chLog_l_time" />
114 </strong>
115 </th>
116 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
117 <th valign="top" class="t3-row-header">
118 <strong>
119 <f:translate key="chLog_l_user" />
120 </strong>
121 </th>
122 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
123 <th valign="top" class="t3-row-header">
124 <strong>
125 <f:if condition="{constraint.isInPageContext}">
126 <f:then>
127 <f:translate key="chLog_l_table" />
128 </f:then>
129 <f:else>
130 <f:translate key="chLog_l_types" />
131 </f:else>
132 </f:if>
133 </strong>
134 </th>
135 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
136 <th valign="top" class="t3-row-header">
137 <strong>
138 <f:translate key="chLog_l_action" />
139 </strong>
140 </th>
141 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
142 <th valign="top" class="t3-row-header">
143 <strong>
144 <f:translate key="chLog_l_details" />
145 </strong>
146 </th>
147 <th class="t3-row-header"><img src="clear.gif" width="10" height="1" alt="" /></th>
148 </tr>
149 </thead>
150 <tbody>
151 <f:for each="{day}" as="logItem">
152 <tr>
153 <td valign="top">
154 <belog:ErrorIcon errorNumber="{logItem.error}" />
155 </td>
156 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
157
158 <td valign="top">
159 <f:format.date format="H:i:s">@{logItem.tstamp}</f:format.date>
160 </td>
161 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
162
163 <td valign="top">
164 <f:if condition="{belog:username(uid:logItem.backendUserUid)}">
165 <f:then><belog:username uid="{logItem.backendUserUid}" /></f:then>
166 <f:else>[{logItem.backendUserUid}]</f:else>
167 </f:if>@<f:if condition="{belog:workspaceTitle(uid:logItem.workspaceUid)}">
168 <f:then><belog:workspaceTitle uid="{logItem.workspaceUid}" /></f:then>
169 <f:else>[{logItem.workspaceUid}]</f:else>
170 </f:if>
171 </td>
172 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
173
174 <td valign="top">
175 <f:if condition="{constraint.isInPageContext}">
176 <f:then>
177 {logItem.tableName}
178 </f:then>
179 <f:else>
180 <f:if condition="{f:translate(key:'type_{logItem.type}')}">
181 <f:then>
182 <f:translate key="type_{logItem.type}" />
183 </f:then>
184 <f:else>
185 [{logItem.type}]
186 </f:else>
187 </f:if>
188 </f:else>
189 </f:if>
190 </td>
191 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
192
193 <td valign="top">
194 <f:if condition="{f:translate(key:'action_{logItem.type}_{logItem.action}')}">
195 <f:then>
196 <f:translate
197 key="action_{logItem.type}_{logItem.action}"
198 htmlEscape="0"
199 />
200 </f:then>
201 <f:else>
202 [{logItem.action}]
203 </f:else>
204 </f:if>
205 </td>
206 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
207
208 <td valign="top">
209 <belog:formatDetails logEntry="{logItem}" />
210 <belog:historyEntry uid="{logItem.uid}" />
211 <f:if condition="{logItem.detailsNumber} > 0">
212 (msg#{logItem.type}.{logItem.action}.{logItem.detailsNumber})
213 </f:if>
214 </td>
215 <td><img src="clear.gif" width="10" height="1" alt="" /></td>
216 </tr>
217 </f:for>
218 </tbody>
219 </table>
220 </f:for>
221 </div>
222 </f:for>