[BUGFIX] Use alerts for new indexed_search BE module
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / Index.html
1 <f:layout name="Administration"/>
2
3 <f:section name="Content">
4 <p class="lead"><f:translate key="administration.index.description" /></p>
5
6 <div class="row">
7 <div class="col-md-6">
8 <h4><f:translate key="administration.statistics.header" /></h4>
9 <table class="t3-table">
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="t3-table">
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
47 <h3>
48 <f:translate key="administration.statistics.mostSearched.title"/>
49 </h3>
50 <p>
51 <f:translate key="administration.statistics.mostSearched.description"/>
52 </p>
53 <f:if condition="{pageUid}">
54 <f:then>
55 <f:if condition="{all}">
56 <f:then>
57 <div class="row">
58 <div class="col-md-4">
59 <f:render section="statistic" arguments="{statistic:all,title:'all'}"/>
60 </div>
61 <div class="col-md-4">
62 <f:render section="statistic" arguments="{statistic:last24hours,title:'last24hours'}"/>
63 </div>
64 <div class="col-md-4">
65 <f:render section="statistic" arguments="{statistic:last30days,title:'last30days'}"/>
66 </div>
67 </div>
68 </f:then>
69 <f:else>
70 <div class="alert alert-notice">
71 <div class="message-body">
72 <f:translate key="administration.statistics.noResultForPage"/>
73 </div>
74 </div>
75 </f:else>
76 </f:if>
77
78 </f:then>
79 <f:else>
80 <div class="alert alert-info">
81 <div class="message-body">
82 <f:translate key="administration.statistics.selectPage"/>
83 </div>
84 </div>
85 </f:else>
86 </f:if>
87 </f:section>
88
89 <f:section name="statistic">
90 <h4>
91 <f:translate key="administration.statistics.mostSearched.{title}"/>
92 </h4>
93 <f:if condition="{statistic}">
94 <f:then>
95 <table class="t3-table">
96 <thead>
97 <tr>
98 <th class="nowrap">&nbsp;</th>
99 <th><f:translate key="administration.statistics.mostSearched."/></th>
100 <th><f:translate key="administration.statistics.count"/></th>
101 </tr>
102 </thead>
103 <tbody>
104 <f:for each="{statistic}" as="line" iteration="i">
105 <tr>
106 <td class="nowrap"><strong>{i.cycle}.</strong></td>
107 <td>{line.word}</td>
108 <td>{line.c}</td>
109 </tr>
110 </f:for>
111 </tbody>
112 </table>
113 </f:then>
114 <f:else>
115 <div class="alert alert-notice">
116 <div class="message-body">
117 <f:translate key="administration.statistics.noResult"/>
118 </div>
119 </div>
120 </f:else>
121 </f:if>
122 </f:section>
123
124 <f:section name="Buttons"></f:section>