|
37 | 37 | </f:if> |
38 | 38 | <core:iconForRecord table="sys_redirect" row="{redirect}" /></span> |
39 | 39 | </f:alias> |
40 | | - <be:link.editRecord table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}: {redirect.source_path}"> |
41 | | - {redirect.source_path -> f:format.crop(maxCharacters:100)} |
42 | | - </be:link.editRecord> |
| 40 | + <f:if condition="{canEditRedirects}"> |
| 41 | + <f:then> |
| 42 | + <be:link.editRecord table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}: {redirect.source_path}"> |
| 43 | + {redirect.source_path -> f:format.crop(maxCharacters:100)} |
| 44 | + </be:link.editRecord> |
| 45 | + </f:then> |
| 46 | + <f:else> |
| 47 | + {redirect.source_path -> f:format.crop(maxCharacters:100)} |
| 48 | + </f:else> |
| 49 | + </f:if> |
43 | 50 | </td> |
44 | 51 |
|
45 | 52 | <td> |
|
50 | 57 |
|
51 | 58 | <td> |
52 | 59 | <div class="btn-group"> |
53 | | - <f:if condition="{redirect.is_regexp} || {redirect.source_host} === '*'"> |
54 | | - <f:then> |
55 | | - <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span> |
56 | | - </f:then> |
57 | | - <f:else> |
58 | | - <f:link.external class="btn btn-default" uri="{redirect.source_host}{redirect.source_path}" target="_blank" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:view_redirect')}"> |
59 | | - <core:icon identifier="actions-view-page" /> |
60 | | - </f:link.external> |
61 | | - </f:else> |
| 60 | + <f:if condition="{canEditRedirects}"> |
| 61 | + <f:if condition="{redirect.is_regexp} || {redirect.source_host} === '*'"> |
| 62 | + <f:then> |
| 63 | + <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span> |
| 64 | + </f:then> |
| 65 | + <f:else> |
| 66 | + <f:link.external class="btn btn-default" uri="{redirect.source_host}{redirect.source_path}" target="_blank" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:view_redirect')}"> |
| 67 | + <core:icon identifier="actions-view-page" /> |
| 68 | + </f:link.external> |
| 69 | + </f:else> |
| 70 | + </f:if> |
| 71 | + <f:if condition="{redirect.disabled} == 1"> |
| 72 | + <f:then> |
| 73 | + <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', query:'data[sys_redirect][{redirect.uid}][disabled]=0', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a> |
| 74 | + </f:then> |
| 75 | + <f:else> |
| 76 | + <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', query:'data[sys_redirect][{redirect.uid}][disabled]=1', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a> |
| 77 | + </f:else> |
| 78 | + </f:if> |
| 79 | + <be:link.editRecord class="btn btn-default" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}"> |
| 80 | + <core:icon identifier="actions-open" /> |
| 81 | + </be:link.editRecord> |
| 82 | + <a class="btn btn-default t3js-modal-trigger" |
| 83 | + href="{be:moduleLink(route:'tce_db', query:'cmd[sys_redirect][{redirect.uid}][delete]=1', currentUrlParameterName:'redirect')}" |
| 84 | + title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}" |
| 85 | + data-severity="warning" |
| 86 | + data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}" |
| 87 | + data-bs-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" |
| 88 | + data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}"> |
| 89 | + <core:icon identifier="actions-delete" /> |
| 90 | + </a> |
62 | 91 | </f:if> |
63 | | - <f:if condition="{redirect.disabled} == 1"> |
64 | | - <f:then> |
65 | | - <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', query:'data[sys_redirect][{redirect.uid}][disabled]=0', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a> |
66 | | - </f:then> |
67 | | - <f:else> |
68 | | - <a class="btn btn-default" href="{be:moduleLink(route:'tce_db', query:'data[sys_redirect][{redirect.uid}][disabled]=1', currentUrlParameterName:'redirect')}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a> |
69 | | - </f:else> |
70 | | - </f:if> |
71 | | - <be:link.editRecord class="btn btn-default" table="sys_redirect" uid="{redirect.uid}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}"> |
72 | | - <core:icon identifier="actions-open" /> |
73 | | - </be:link.editRecord> |
74 | | - <a class="btn btn-default t3js-modal-trigger" |
75 | | - href="{be:moduleLink(route:'tce_db', query:'cmd[sys_redirect][{redirect.uid}][delete]=1', currentUrlParameterName:'redirect')}" |
76 | | - title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}" |
77 | | - data-severity="warning" |
78 | | - data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}" |
79 | | - data-bs-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" |
80 | | - data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}"> |
81 | | - <core:icon identifier="actions-delete" /> |
82 | | - </a> |
83 | 92 | </div> |
84 | 93 | </td> |
85 | 94 | </tr> |
|
91 | 100 | <f:else> |
92 | 101 | <f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.title')}"> |
93 | 102 | <p><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.message"/></p> |
94 | | - <be:link.newRecord class="btn btn-primary" table="sys_redirect"> |
95 | | - <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/> |
96 | | - </be:link.newRecord> |
| 103 | + <f:if condition="{canEditRedirects}"> |
| 104 | + <f:then> |
| 105 | + <be:link.newRecord class="btn btn-primary" table="sys_redirect"> |
| 106 | + <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/> |
| 107 | + </be:link.newRecord> |
| 108 | + </f:then> |
| 109 | + </f:if> |
97 | 110 | </f:be.infobox> |
98 | 111 | </f:else> |
99 | 112 | </f:if> |
|
0 commit comments