c639913cac4c490dcd0c486f7a226b494df362fe
[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 <f:if condition="{showHitCounter}">
29 <th># <f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hits"/></th>
30 <th><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last"/></th>
31 </f:if>
32 <th></th>
33 </tr>
34 </thead>
35 <tbody>
36 <f:for each="{redirects}" key="domainName" as="redirectsPerDomain">
37 <f:for each="{redirectsPerDomain}" as="groupedRedirects">
38 <f:for each="{groupedRedirects}" as="redirectRecords">
39 <f:for each="{redirectRecords}" as="redirect">
40 <tr>
41 <td>{redirect.source_host}</td>
42 <td>
43 <f:alias map="{
44 disable: '{f:translate(key: \'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:record_disabled\')}',
45 onlystart: '{f:translate(key: \'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:start\')}: {f:format.date(date: redirect.starttime, format: \'d.m.Y H:i:s\')}',
46 onlyend: '{f:translate(key: \'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:stop\')}: {f:format.date(date: redirect.endtime, format: \'d.m.Y H:i:s\')}',
47 startend: '{f:translate(key: \'LLL:EXT:core/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:core/Resources/Private/Language/locallang_common.xlf:stop\')}: {f:format.date(date: redirect.endtime, format: \'d.m.Y H:i:s\')}'
48 }">
49 <f:if condition="{redirect.disabled}"><f:then><span title="{disable}"></f:then>
50 <f:else if="{redirect.starttime} && !{redirect.endtime}"><span title="{onlystart}"></f:else>
51 <f:else if="!{redirect.starttime} && {redirect.endtime}"><span title="{onlyend}"></f:else>
52 <f:else if="{redirect.starttime} && {redirect.endtime}"><span title="{startend}"></f:else>
53 <f:else><span></f:else>
54 </f:if>
55 <core:iconForRecord table="sys_redirect" row="{redirect}" /></span>
56 </f:alias>
57 <a href="{rd:editRecord(command: 'edit', uid: redirect.uid)}" title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">{redirect.source_path}</a>
58 </td>
59 <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>
60 <f:if condition="{showHitCounter}">
61 <td>
62 <f:if condition="!{redirect.disable_hitcount}">
63 <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}"/>
64 <f:if condition="{redirect.hitcount} != 0">
65 <a class="t3js-modal-trigger"
66 href="{rd:editRecord(command: 'resetcounter', uid: redirect.uid)}"
67 title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset')}"
68 data-title="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.title')}"
69 data-content="{f:translate(key: 'LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_reset.confirm.content')}"
70 data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
71 <core:icon identifier="actions-edit-restore" /></a>
72 </f:if>
73 </f:if>
74 <td>
75 <f:if condition="{redirect.lasthiton}">
76 <f:then><f:format.date format="d.m.Y H:i:s">@{redirect.lasthiton}</f:format.date></f:then>
77 <f:else><f:translate key="LLL:EXT:redirects/Resources/Private/Language/locallang_module_redirect.xlf:hit_last_never"/></f:else>
78 </f:if>
79 </td>
80 </f:if>
81 <td>
82 <div class="btn-group">
83 <f:if condition="{redirect.is_regexp}">
84 <f:then>
85 <span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
86 </f:then>
87 <f:else>
88 <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">
89 <core:icon identifier="actions-view-page" />
90 </f:link.external>
91 </f:else>
92 </f:if>
93 <a class="btn btn-default"
94 href="{rd:editRecord(command: 'edit', uid: redirect.uid)}"
95 title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:edit')}">
96 <core:icon identifier="actions-open" />
97 </a>
98 <f:if condition="{redirect.disabled} == 1">
99 <f:then>
100 <a class="btn btn-default" href="{rd:editRecord(command: 'unhide', uid: redirect.uid)}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:unHide')}"><core:icon identifier="actions-edit-unhide" /></a>
101 </f:then>
102 <f:else>
103 <a class="btn btn-default" href="{rd:editRecord(command: 'hide', uid: redirect.uid)}" title="{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:hide')}"><core:icon identifier="actions-edit-hide" /></a>
104 </f:else>
105 </f:if>
106 <a class="btn btn-default t3js-modal-trigger"
107 href="{rd:editRecord(command: 'delete', uid: redirect.uid)}"
108 title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web_list.xlf:delete')}"
109 data-severity="warning"
110 data-title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')}"
111 data-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}"
112 data-button-close-text="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:buttons.confirm.delete_record.no')}">
113 <core:icon identifier="actions-delete" />
114 </a>
115 </div>
116 </td>
117 </tr>
118 </f:for>
119 </f:for>
120 </f:for>
121 </f:for>
122 </tbody>
123 </table>
124 </div>
125 </f:section>
126 </html>