[BUGFIX] Show records in ws preview if live is hidden
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / Index.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:layout name="Administration" />
3 <f:section name="Content">
4
5 <p class="lead"><f:translate key="administration.index.description" /></p>
6 <div class="row">
7 <div class="col-md-6">
8 <h4><f:translate key="administration.statistics.header" /></h4>
9 <table class="table table-striped table-hover">
10 <thead>
11 <tr>
12 <th><f:translate key="administration.statistics.name" /></th>
13 <th><f:translate key="administration.statistics.count" /></th>
14 </tr>
15 </thead>
16 <tbody>
17 <f:for each="{records}" as="count" key="name">
18 <tr>
19 <td>{name}</td>
20 <td>{count}</td>
21 </tr>
22 </f:for>
23 </tbody>
24 </table>
25 </div>
26 <div class="col-md-6">
27 <h4><f:translate key="administration.statistics.headerTypes" /></h4>
28 <table class="table table-striped table-hover">
29 <thead>
30 <tr>
31 <th><f:translate key="administration.statistics.name" /></th>
32 <th><f:translate key="administration.statistics.count" /></th>
33 </tr>
34 </thead>
35 <tbody>
36 <f:for each="{phash}" as="data">
37 <tr>
38 <td>{data.name} ({data.type})</td>
39 <td>{data.count} / {data.uniqueCount}</td>
40 </tr>
41 </f:for>
42 </tbody>
43 </table>
44 </div>
45 </div>
46 <h3>
47 <f:translate key="administration.statistics.mostSearched.title" />
48 </h3>
49 <p>
50 <f:translate key="administration.statistics.mostSearched.description" />
51 </p>
52 <f:if condition="{pageUid}">
53 <f:then>
54 <f:if condition="{all}">
55 <f:then>
56 <div class="row">
57 <div class="col-md-4">
58 <f:render section="statistic" arguments="{statistic:all,title:'all'}" />
59 </div>
60 <div class="col-md-4">
61 <f:render section="statistic" arguments="{statistic:last24hours,title:'last24hours'}" />
62 </div>
63 <div class="col-md-4">
64 <f:render section="statistic" arguments="{statistic:last30days,title:'last30days'}" />
65 </div>
66 </div>
67 </f:then>
68 <f:else>
69 <f:be.infobox>
70 <f:translate key="administration.statistics.noResultForPage" />
71 </f:be.infobox>
72 </f:else>
73 </f:if>
74 </f:then>
75 <f:else>
76 <f:be.infobox state="-1">
77 <f:translate key="administration.statistics.selectPage" />
78 </f:be.infobox>
79 </f:else>
80 </f:if>
81
82 </f:section>
83 <f:section name="statistic">
84
85 <h4>
86 <f:translate key="administration.statistics.mostSearched.{title}" />
87 </h4>
88 <f:if condition="{statistic}">
89 <f:then>
90 <table class="table table-striped table-hover">
91 <thead>
92 <tr>
93 <th class="nowrap">&nbsp;</th>
94 <th><f:translate key="administration.statistics.word" /></th>
95 <th><f:translate key="administration.statistics.count" /></th>
96 </tr>
97 </thead>
98 <tbody>
99 <f:for each="{statistic}" as="line" iteration="i">
100 <tr>
101 <td class="nowrap"><strong>{i.cycle}.</strong></td>
102 <td>{line.word}</td>
103 <td>{line.c}</td>
104 </tr>
105 </f:for>
106 </tbody>
107 </table>
108 </f:then>
109 <f:else>
110 <f:be.infobox state="2">
111 <f:translate key="administration.statistics.noResult" />
112 </f:be.infobox>
113 </f:else>
114 </f:if>
115
116 </f:section>
117 </html>