[!!!][TASK] Rewrite backend modules of indexed_search
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / Statistic.html
1 {namespace is=TYPO3\CMS\IndexedSearch\ViewHelpers}
2
3 <f:layout name="Administration"/>
4
5 <f:section name="Content">
6 <f:if condition="{tree}">
7 <f:then>
8 <f:form name="statistic" action="statistic" class="form-horizontal" arguments="{id:pageUid}">
9 <div class="form-group">
10 <div class="col-sm-12">
11 <f:form.select name="mode" options="{
12 overview:'{f:translate(key:\'administration.statistics.view.overview\')}',
13 content:'{f:translate(key:\'administration.statistics.view.content\')}'
14 }" value="{mode}" additionalAttributes="{onchange:'this.form.submit();'}"/>
15 <f:form.select name="depth" options="{levelTranslations}" value="{depth}" additionalAttributes="{onchange:'this.form.submit();'}"/>
16 </div>
17 </div>
18 </f:form>
19 <table class="t3-table">
20 <thead>
21 <tr>
22 <th></th>
23 <th>
24 <f:be.buttons.icon title="{f:translate(key:'administration.removeAllEntries')}" icon="actions-edit-delete" uri="{f:uri.action(action:'deleteIndexedItem',arguments:'{id:\'ALL\',depth:depth,mode:mode}')}"/>
25 </th>
26 <th>
27 <f:translate key="field.fileName"/>
28 </th>
29 <f:switch expression="{mode}">
30 <f:case value="content">
31 <th>
32 <f:translate key="field.content" />
33 </th>
34 <th>
35 <f:translate key="field.words" />
36 </th>
37 </f:case>
38 <f:case default="TRUE">
39 <th>
40 <f:translate key="field.wordCount"/>
41 </th>
42 <th>
43 <f:translate key="field.fileSize"/>
44 </th>
45 <th>
46 <f:translate key="field.indexed"/>
47 </th>
48 </f:case>
49 </f:switch>
50 </tr>
51 </thead>
52 <tbody>
53 <f:for each="{tree}" as="line">
54 <f:if condition="{line.lines}">
55 <f:then>
56 <f:for each="{line.lines}" as="l" iteration="i">
57 <tr>
58 <f:then>
59 <td class="nowrap">
60 {line.HTML -> f:format.raw()}
61 <f:if condition="{i.index} == 0"> {line.row.title}</f:if>
62 </td>
63 <td>
64 <f:be.buttons.icon title="{f:translate(key:'administration.removeEntry')}" icon="actions-edit-delete" uri="{f:uri.action(action:'deleteIndexedItem',arguments:'{id:l.phash,depth:depth,mode:mode}')}"/>
65 </td>
66 <td>
67 <f:image src="{l.icon}"/>
68 <f:link.action action="statisticDetails" arguments="{pageHash:l.phash}">{l.item_title}</f:link.action>
69 </td>
70 <f:switch expression="{mode}">
71 <f:case value="content">
72 <td>
73 {l.fulltextData.fulltextdata}
74 </td>
75 <td>
76 <f:for each="{l.allWords}" as="w">
77 {w}
78 </f:for>
79 <br><br>
80 <em>{f:translate(key:'administration.statistics.count')}: {f:count(subject:l.allWords)}</em>
81 </td>
82 </f:case>
83 <f:case default="TRUE">
84 <td>{l.wordCount}</td>
85 <td>
86 <f:format.bytes decimals="1">{l.item_size}</f:format.bytes>
87 </td>
88 <td>
89 <is:format.dateTime>{l.tstamp}</is:format.dateTime>
90 </td>
91 </f:case>
92 </f:switch>
93 </f:then>
94 </tr>
95 </f:for>
96 </f:then>
97 <f:else>
98 <tr>
99 <td class="nowrap">{line.HTML -> f:format.raw()} {line.row.title}</td>
100 <f:switch expression="{mode}">
101 <f:case value="content">
102 <td colspan="5">
103 <f:translate key="administration.notIndexed" />
104 </td>
105 </f:case>
106 <f:case default="TRUE">
107 <td colspan="5">
108 <f:translate key="administration.notIndexed"/>
109 </td>
110 </f:case>
111 </f:switch>
112 </tr>
113 </f:else>
114 </f:if>
115 </f:for>
116 </tbody>
117 </table>
118 </f:then>
119 <f:else>
120 <h2><f:translate key="administration.noPageSelected"/></h2>
121 </f:else>
122 </f:if>
123 </f:section>
124
125 <f:section name="Buttons"></f:section>