[BUGFIX] Use alerts for new indexed_search BE module
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / StatisticDetails.html
1 {namespace is=TYPO3\CMS\IndexedSearch\ViewHelpers}
2
3 <f:layout name="Administration"/>
4
5 <f:section name="Content">
6 <p class="lead"><f:translate key="administration.document.description"/></p>
7 <f:flashMessages renderMode="div"/>
8 <f:if condition="{phashRow}">
9 <f:then>
10 <table class="t3-table">
11 <thead>
12 <tr>
13 <th colspan="2"><f:translate key="administration.phash.tableHeader"/></th>
14 </tr>
15 </thead>
16 <f:for each="{phashRow}" as="value" key="key">
17 <tr>
18 <td><strong>{key}</strong></td>
19 <td>{value}</td>
20 </tr>
21 </f:for>
22 </table>
23
24 <div class="row">
25 <div class="col-md-12">
26 <f:render section="wordlisting" arguments="{words:words,phash:phash,page:page,keywords:keywords,title:'words'}"/>
27 </div>
28 </div>
29
30 <div class="row">
31 <div class="col-md-6">
32 <f:render section="wordlisting" arguments="{words:topCount,phash:phash,title:'topCount'}"/>
33 </div>
34 <div class="col-md-6">
35 <f:render section="wordlisting" arguments="{words:topFrequency,phash:phash,title:'topFrequency'}"/>
36 </div>
37 </div>
38
39 <f:if condition="{debug}">
40 <h4>
41 <f:translate key="administration.statistics.debug"/>
42 </h4>
43 <f:debug inline="1" title="">{debug}</f:debug>
44 </f:if>
45 <f:if condition="{lexer}">
46 <h4>
47 <f:translate key="administration.statistics.lexer"/>
48 </h4>
49 <f:format.raw>{lexer}</f:format.raw>
50 </f:if>
51
52 <f:if condition="{metaphone}">
53 <h4>
54 <f:translate key="administration.statistics.metaphone"/>
55 </h4>
56 <table class="t3-table">
57 <thead>
58 <tr>
59 <th>
60 <f:translate key="field.metaphone"/>
61 </th>
62 <th>
63 <f:translate key="field.pHash"/>
64 </th>
65 <th>
66 <f:translate key="field.wordCount"/>
67 </th>
68 <th>
69 <f:translate key="field.words"/>
70 </th>
71 </tr>
72 </thead>
73 <tbody>
74 <f:for each="{metaphone}" as="row">
75 <tr>
76 <td>{row.metaphone}</td>
77 <td>{row.hash}</td>
78 <td>{f:count(subject:row.words)}</td>
79 <td><f:for each="{row.words}" as="word">
80 {word},
81 </f:for></td>
82 </tr>
83 </f:for>
84 </tbody>
85 </table>
86 </f:if>
87
88 <f:if condition="{sections}">
89 <h4><f:translate key="administration.statistics.sectionRecords"/></h4>
90 <table class="t3-table">
91 <thead>
92 <tr>
93 <th><f:translate key="field.pHash"/></th>
94 <th>rl0</th>
95 <th>rl1</th>
96 <th>rl2</th>
97 <th><f:translate key="field.id"/></th>
98 <th><f:translate key="field.uniqueId"/></th>
99 </tr>
100 </thead>
101 <tbody>
102 <f:for each="{sections}" as="row">
103 <tr>
104 <td>{row.phash}</td>
105 <td>{row.rl0}</td>
106 <td>{row.rl1}</td>
107 <td>{row.rl2}</td>
108 <td>{row.page_id}</td>
109 <td>{row.uniqueid}</td>
110 </tr>
111 </f:for>
112 </tbody>
113 </table>
114 </f:if>
115 </f:then>
116 <f:else>
117 <div class="alert alert-danger">
118 <div class="message-body">
119 no record found
120 </div>
121 </div>
122 </f:else>
123 </f:if>
124 </f:section>
125
126 <f:section name="wordlisting">
127 <h4><f:translate key="administration.document.{title}"/>
128 <f:if condition="{title}=='words'">
129 ({f:count(subject:words)})
130 </f:if>
131 </h4>
132 <f:if condition="{words}">
133 <f:form method="post" action="saveStopwordsKeywords" name="stopwordskeywords" arguments="{pageHash:phash}">
134 <f:form.hidden name="pageHash" value="{phash}"/>
135 <f:form.hidden name="pageId" value="{page.uid}"/>
136 <table class="t3-table">
137 <thead>
138 <tr>
139 <th><f:translate key="administration.stopWords"/></th>
140 <f:if condition="{title}=='words'">
141 <f:if condition="{page}">
142 <th><f:translate key="administration.keywords"/></th>
143 </f:if>
144 </f:if>
145 <th><f:translate key="administration.statistics.word"/></th>
146 <th><f:translate key="field.wordCount"/></th>
147 <th><f:translate key="field.frequency"/></th>
148 <th><f:translate key="field.flag"/></th>
149 </tr>
150 </thead>
151 <tbody>
152 <f:for each="{words}" as="word">
153 <tr>
154 <td>
155 <f:form.checkbox name="stopwords[{word.wid}]" value="1" checked="{word.is_stopword}"/>
156 </td>
157 <f:if condition="{title}=='words'">
158 <f:if condition="{page}">
159 <td>
160 <f:form.checkbox name="keywords[{word.baseword}]" value="1" checked="{word.is_keyword}"/>
161 </td>
162 </f:if>
163 </f:if>
164 <td>
165 <f:link.action action="wordDetail" arguments="{id:word.wid,pageHash:phash}">{word.baseword}</f:link.action>
166 </td>
167 <td>{word.count}</td>
168 <td>{word.freq}</td>
169 <td>
170 <f:if condition="{word.flags} > 0">
171 {is:format.flagValue(flags:word.flags)} ({word.flags})
172 </f:if>
173 </td>
174 </tr>
175 </f:for>
176 </tbody>
177 </table>
178 <f:if condition="{title}=='words'">
179 <f:then>
180 <f:if condition="{keywords}">
181 <div>
182 {f:translate(key:'administration.keywords.current')}:
183 <f:for each="{keywords}" key="keyword" as="_" iteration="i">
184 {f:if(condition:i.isFirst,then:'',else:', ')}<i>{keyword}</i>
185 </f:for>
186 </div>
187 </f:if>
188 <f:form.submit value="{f:translate(key:'administration.stopWordsKeywords.save')}"/>
189 </f:then>
190 <f:else>
191 <f:form.submit value="{f:translate(key:'administration.stopWords.save')}"/>
192 </f:else>
193
194 </f:if>
195
196 </f:form>
197 </f:if>
198 </f:section>
199
200 <f:section name="Buttons">
201 <f:be.buttons.icon title="{f:translate(key:'administration.back')}" icon="actions-view-go-back" uri="{f:uri.action(action:'statistic')}"/>
202 </f:section>