[BUGFIX] Add preview icon in overview and link to record edit 81/55481/2
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 29 Jan 2018 09:26:29 +0000 (10:26 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 29 Jan 2018 09:56:22 +0000 (10:56 +0100)
In the overview table of the redirects module the source path now links
to edit record view (like everywhere in the backend) and a new preview icon
is now available in case the source path is not a RegExp.

Resolves: #83709
Related: #83708
Releases: master
Change-Id: Ie92e434f675a5f66e5e779e0d739d75a0a774caa
Reviewed-on: https://review.typo3.org/55481
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/redirects/Resources/Private/Templates/Management/Overview.html

index 333f5a4..74bcc52 100644 (file)
@@ -52,7 +52,7 @@
                                                                                </f:if>
                                                                                <core:iconForRecord table="sys_redirect" row="{redirect}" /></span>
                                                                                </f:alias>
-                                                                               <strong><f:link.external uri="{f:if(condition: '{redirect.source_host} == \'*\'', then: defaultUrl, else: redirect.source_host)}{redirect.source_path}" target="_blank">{redirect.source_path}</f:link.external></strong>
+                                                                               <a href="{rd:editRecord(command: 'edit', uid: redirect.uid)}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">{redirect.source_path}</a>
                                                                        </td>
                                                                        <td><f:link.typolink parameter="{redirect.target}" target="_blank"><f:uri.typolink parameter="{redirect.target}"></f:uri.typolink></f:link.typolink> (<f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:destination_status_code"/>: {redirect.target_statuscode})</td>
                                                                        <td>
                                                                        </td>
                                                                        <td>
                                                                                <div class="btn-group">
+                                                                                       <f:if condition="{redirect.is_regexp}">
+                                                                                               <f:then>
+                                                                                                       <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
+                                                                                               </f:then>
+                                                                                               <f:else>
+                                                                                                       <f:link.external class="btn btn-default" uri="{f:if(condition: '{redirect.source_host} == \'*\'', then: defaultUrl, else: redirect.source_host)}{redirect.source_path}" target="_blank">
+                                                                                                               <core:icon identifier="actions-view-page" />
+                                                                                                       </f:link.external>
+                                                                                               </f:else>
+                                                                                       </f:if>
                                                                                        <a class="btn btn-default"
                                                                                                 href="{rd:editRecord(command: 'edit', uid: redirect.uid)}"
                                                                                                 title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">