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