Skip to content
Snippets Groups Projects
Commit c098aca2 authored by Frank Naegler's avatar Frank Naegler Committed by Stefan Neufeind
Browse files

[BUGFIX] Add preview icon in overview and link to record edit

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
parent 91b0f3be
Branches
Tags
No related merge requests found
......@@ -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>
......@@ -76,6 +76,16 @@
</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')}">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment