[TASK] Log module: Move "show history" to the actions column 41/61341/3
authorDaniel Windloff <daniel.jc.windloff@googlemail.com>
Tue, 23 Jul 2019 08:37:48 +0000 (10:37 +0200)
committerSusanne Moog <look@susi.dev>
Fri, 26 Jul 2019 13:31:49 +0000 (15:31 +0200)
Move the "Show history" link to the actions column.
Add default styling for the button.

Resolves: #88822
Releases: master, 9.5
Change-Id: I9952f1683dda3d0fa2b00da3e6a728838da3e1aa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61341
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Guido Schmechel <guido.schmechel@brandung.de>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Susanne Moog <look@susi.dev>
typo3/sysext/belog/Resources/Private/Partials/Content/LogEntries.html

index fdb6b4c..eebb87d 100644 (file)
                                 </td>
                                 <td class="col-word-break">
                                     <belog:formatDetails logEntry="{logItem}"/>
-                                    <f:if condition="{logItem.logData.history}">
-                                        <a href="{be:moduleLink(route: 'record_history', arguments: '{historyEntry: logItem.logData.history}')}" title="{f:translate(key: 'showHistory')}">
-                                            <core:icon identifier="actions-document-history-open" />
-                                        </a>
-                                    </f:if>
                                     <f:if condition="{logItem.detailsNumber} > 0">
                                         (msg#{logItem.type}.{logItem.action}.{logItem.detailsNumber})
                                     </f:if>
                                             <f:translate key="actions.delete"/>
                                         </f:link.action>
                                     </f:if>
+                                    <f:if condition="{logItem.logData.history}">
+                                        <a class="btn btn-default" href="{be:moduleLink(route: 'record_history', arguments: '{historyEntry: logItem.logData.history}')}" title="{f:translate(key: 'showHistory')}">
+                                            <core:icon identifier="actions-document-history-open" />
+                                            <f:translate id="showHistory" />
+                                        </a>
+                                    </f:if>
                                 </td>
                             </tr>
                         </f:for>