[FEATURE] Add system extension "redirects"
[Packages/TYPO3.CMS.git] / typo3 / sysext / redirects / Resources / Private / Templates / Management / Overview.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:rd="http://typo3.org/ns/TYPO3/CMS/Redirects/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:layout name="RedirectAdministration" />
3
4 <f:section name="headline">
5 <h1><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:heading_text"/></h1>
6 </f:section>
7
8 <f:section name="content">
9 <div class="table-fit">
10 <table class="table table-striped table-hover">
11 <thead>
12 <tr>
13 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_host"/></th>
14 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_path"/></th>
15 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:destination"/></th>
16 <th># <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hits"/></th>
17 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last"/></th>
18 <th></th>
19 </tr>
20 </thead>
21 <tbody>
22 <f:for each="{redirects}" key="domainName" as="redirectsPerDomain">
23 <f:for each="{redirectsPerDomain}" as="groupedRedirects">
24 <f:for each="{groupedRedirects}" as="redirectRecords">
25 <f:for each="{redirectRecords}" as="redirect">
26 <tr>
27 <td>{redirect.source_host}</td>
28 <td>
29 <f:if condition="{redirect.disabled} == 1"><span title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:record_disabled')}"><core:icon identifier="overlay-hidden" /></span></f:if>
30 <f:if condition="{redirect.starttime} != 0 || {redirect.endtime} != 0"><span title="{f:format.date(date: redirect.starttime, format: '%d.%m.%Y %H:%M')} - {f:format.date(date: redirect.endtime, format: '%d.%m.%Y %H:%M')}"><core:icon identifier="overlay-scheduled" /></span></f:if>
31 <strong><f:link.external uri="{redirect.source_host}{redirect.source_path}" target="_blank">{redirect.source_path}</f:link.external></strong>
32 </td>
33 <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>
34 <td>
35 <f:if condition="!{redirect.disable_hitcount}">
36 <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit{f:if(condition:'{redirect.hitcount} > 1',then:'s')}_text" arguments="{0:redirect.hitcount}"/>
37 <f:if condition="{redirect.hitcount} != 0">
38 <a class="t3js-modal-trigger"
39 href="{rd:editRecord(command: 'resetcounter', uid: redirect.uid)}"
40 title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset')}"
41 data-title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.title')}"
42 data-content="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.content')}"
43 data-button-close-text="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
44 <core:icon identifier="actions-edit-restore" /></a>
45 </f:if>
46 </f:if>
47 <td>
48 <f:if condition="{redirect.lasthiton}">
49 <f:then><f:format.date format="d.m.Y H:i:s">@{redirect.lasthiton}</f:format.date></f:then>
50 <f:else><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last_never"/></f:else>
51 </f:if>
52 </td>
53 <td>
54 <div class="btn-group">
55 <a class="btn btn-default"
56 href="{rd:editRecord(command: 'edit', uid: redirect.uid)}"
57 title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">
58 <core:icon identifier="actions-open" />
59 </a>
60 <f:if condition="{redirect.disabled} == 1">
61 <f:then>
62 <a class="btn btn-default" href="{rd:editRecord(command: 'unhide', uid: redirect.uid)}" title="{f:translate(key:'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a>
63 </f:then>
64 <f:else>
65 <a class="btn btn-default" href="{rd:editRecord(command: 'hide', uid: redirect.uid)}" title="{f:translate(key:'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a>
66 </f:else>
67 </f:if>
68 <a class="btn btn-default t3js-modal-trigger"
69 href="{rd:editRecord(command: 'delete', uid: redirect.uid)}"
70 title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}"
71 data-severity="warning"
72 data-title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}"
73 data-content="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}"
74 data-button-close-text="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
75 <core:icon identifier="actions-delete" />
76 </a>
77 </div>
78 </td>
79 </tr>
80 </f:for>
81 </f:for>
82 </f:for>
83 </f:for>
84 </tbody>
85 </table>
86 </div>
87 </f:section>
88 </html>