Skip to content

Commit

Permalink
[BUGFIX] Add preview icon in overview and link to record edit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeoBlack authored and neufeind committed Jan 29, 2018
1 parent 91b0f3b commit c098aca
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h1><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_mod
</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>
Expand All @@ -76,6 +76,16 @@ <h1><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_mod
</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')}">
Expand Down

0 comments on commit c098aca

Please sign in to comment.