333f5a49662f5d6f9989baed2e08ef46a3dc55a9
[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 <f:if condition="{redirects -> f:count()}">
10 <f:then><f:render section="table" arguments="{_all}" /></f:then>
11 <f:else>
12 <f:be.infobox state="-1" title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.title')}">
13 <p><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_not_found.message"/></p>
14 <a class="btn btn-primary" href="{rd:editRecord(command: 'new', uid: 0)}"><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:redirect_create"/></a>
15 </f:be.infobox>
16 </f:else>
17 </f:if>
18 </f:section>
19
20 <f:section name="table">
21 <div class="table-fit">
22 <table class="table table-striped table-hover">
23 <thead>
24 <tr>
25 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_host"/></th>
26 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:source_path"/></th>
27 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:destination"/></th>
28 <th># <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hits"/></th>
29 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last"/></th>
30 <th></th>
31 </tr>
32 </thead>
33 <tbody>
34 <f:for each="{redirects}" key="domainName" as="redirectsPerDomain">
35 <f:for each="{redirectsPerDomain}" as="groupedRedirects">
36 <f:for each="{groupedRedirects}" as="redirectRecords">
37 <f:for each="{redirectRecords}" as="redirect">
38 <tr>
39 <td>{redirect.source_host}</td>
40 <td>
41 <f:alias map="{
42 disable: '{f:translate(key: \'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:record_disabled\')}',
43 onlystart: '{f:translate(key: \'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:start\')}: {f:format.date(date: redirect.starttime, format: \'d.m.Y H:i:s\')}',
44 onlyend: '{f:translate(key: \'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:stop\')}: {f:format.date(date: redirect.endtime, format: \'d.m.Y H:i:s\')}',
45 startend: '{f:translate(key: \'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:start\')}: {f:format.date(date: redirect.starttime, format: \'d.m.Y H:i:s\')} - {f:translate(key: \'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:stop\')}: {f:format.date(date: redirect.endtime, format: \'d.m.Y H:i:s\')}'
46 }">
47 <f:if condition="{redirect.disabled}"><f:then><span title="{disable}"></f:then>
48 <f:else if="{redirect.starttime} && !{redirect.endtime}"><span title="{onlystart}"></f:else>
49 <f:else if="!{redirect.starttime} && {redirect.endtime}"><span title="{onlyend}"></f:else>
50 <f:else if="{redirect.starttime} && {redirect.endtime}"><span title="{startend}"></f:else>
51 <f:else><span></f:else>
52 </f:if>
53 <core:iconForRecord table="sys_redirect" row="{redirect}" /></span>
54 </f:alias>
55 <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>
56 </td>
57 <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>
58 <td>
59 <f:if condition="!{redirect.disable_hitcount}">
60 <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}"/>
61 <f:if condition="{redirect.hitcount} != 0">
62 <a class="t3js-modal-trigger"
63 href="{rd:editRecord(command: 'resetcounter', uid: redirect.uid)}"
64 title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset')}"
65 data-title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.title')}"
66 data-content="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.content')}"
67 data-button-close-text="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
68 <core:icon identifier="actions-edit-restore" /></a>
69 </f:if>
70 </f:if>
71 <td>
72 <f:if condition="{redirect.lasthiton}">
73 <f:then><f:format.date format="d.m.Y H:i:s">@{redirect.lasthiton}</f:format.date></f:then>
74 <f:else><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last_never"/></f:else>
75 </f:if>
76 </td>
77 <td>
78 <div class="btn-group">
79 <a class="btn btn-default"
80 href="{rd:editRecord(command: 'edit', uid: redirect.uid)}"
81 title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">
82 <core:icon identifier="actions-open" />
83 </a>
84 <f:if condition="{redirect.disabled} == 1">
85 <f:then>
86 <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>
87 </f:then>
88 <f:else>
89 <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>
90 </f:else>
91 </f:if>
92 <a class="btn btn-default t3js-modal-trigger"
93 href="{rd:editRecord(command: 'delete', uid: redirect.uid)}"
94 title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}"
95 data-severity="warning"
96 data-title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}"
97 data-content="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}"
98 data-button-close-text="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
99 <core:icon identifier="actions-delete" />
100 </a>
101 </div>
102 </td>
103 </tr>
104 </f:for>
105 </f:for>
106 </f:for>
107 </f:for>
108 </tbody>
109 </table>
110 </div>
111 </f:section>
112 </html>