|
1 | 1 | {namespace solr=ApacheSolrForTypo3\Solr\ViewHelpers}
|
2 | 2 |
|
3 |
| -<solr:backend.script file="{f:uri.resource(path:'JavaScripts/jquery-1.9.1.min.js')}"/> |
4 |
| -<solr:backend.script file="{f:uri.resource(path:'JavaScripts/chart.js')}"/> |
5 |
| -<solr:backend.script file="{f:uri.resource(path:'JavaScripts/IndexQueueModule.js')}"/> |
6 |
| - |
7 | 3 | <solr:backend.style file="{f:uri.resource(path:'StyleSheets/Backend/IndexQueueModule.css')}" />
|
8 | 4 |
|
9 | 5 |
|
|
31 | 27 | </div>
|
32 | 28 |
|
33 | 29 |
|
| 30 | +<f:if condition="{indexqueue_statistics_counts.total} > 0"> |
34 | 31 | <div class="row-fluid section-with-header">
|
35 |
| - <script type="text/json" id="indexqueue_stats"> |
36 |
| - <f:format.raw>{indexqueue_stats}</f:format.raw> |
37 |
| - </script> |
38 |
| - |
39 | 32 | <h2>
|
40 | 33 | <f:translate key="solr.backend.index_queue_module.header_status"/>
|
41 | 34 | </h2>
|
42 | 35 |
|
43 | 36 | <div class="row-fluid">
|
44 |
| - <div class="span8 well"> |
| 37 | + <div class="progress"> |
| 38 | + <f:if condition="{indexqueue_statistics_counts.indexed} > 0"> |
| 39 | + <div class="bar bar-success" style="width: {indexqueue_statistics_percentages.indexed}%" |
| 40 | + title="{f:translate(key:'solr.backend.index_queue_module.status.indexed')}: {indexqueue_statistics_counts.indexed}/{indexqueue_statistics_counts.total} ({indexqueue_statistics_percentages.indexed}%)"> |
| 41 | + <f:translate key="solr.backend.index_queue_module.status.indexed"/> |
| 42 | + </div> |
| 43 | + </f:if> |
| 44 | + |
| 45 | + <f:if condition="{indexqueue_statistics_counts.pending} > 0"> |
| 46 | + <div class="bar bar-warning" style="width: {indexqueue_statistics_percentages.pending}%" |
| 47 | + title="{f:translate(key:'solr.backend.index_queue_module.status.pending')}: {indexqueue_statistics_counts.pending}/{indexqueue_statistics_counts.total} ({indexqueue_statistics_percentages.pending}%)"> |
| 48 | + <f:translate key="solr.backend.index_queue_module.status.pending"/> |
| 49 | + </div> |
| 50 | + </f:if> |
| 51 | + |
| 52 | + <f:if condition="{indexqueue_statistics_counts.errors} > 0"> |
| 53 | + <div class="bar bar-danger" style="width: {indexqueue_statistics_percentages.errors}%" |
| 54 | + title="{f:translate(key:'solr.backend.index_queue_module.status.errors')}: {indexqueue_statistics_counts.errors}/{indexqueue_statistics_counts.total} ({indexqueue_statistics_percentages.errors}%)"> |
| 55 | + <f:translate key="solr.backend.index_queue_module.status.errors"/> |
| 56 | + </div> |
| 57 | + </f:if> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + |
| 61 | + <f:if condition="{indexqueue_errors}"> |
| 62 | + <div class="row-fluid"> |
| 63 | + <div class="span12 well"> |
45 | 64 | <h2>
|
46 | 65 | <f:translate key="solr.backend.index_queue_module.errors.headline" />
|
47 | 66 | </h2>
|
|
77 | 96 | </f:for>
|
78 | 97 | </table>
|
79 | 98 |
|
80 |
| - <f:if condition="{indexqueue_errors}"> |
81 |
| - <solr:backend.button.ActionButton |
82 |
| - action="resetLogErrors" |
83 |
| - label="{f:translate(key:'solr.backend.index_queue_module.errors.reset_button')}" |
84 |
| - class="btn-sm btn-default" |
85 |
| - /> |
86 |
| - </f:if> |
87 |
| - </div> |
88 |
| - |
89 |
| - <div class="span4 well stats_container"> |
90 |
| - <h2> |
91 |
| - <f:translate key="solr.backend.index_queue_module.status.header" /> |
92 |
| - </h2> |
93 |
| - |
94 |
| - <canvas id="indexqueue_stats_chart" width="100" height="100"></canvas> |
95 |
| - |
96 |
| - <div style="clear: both;"></div> |
| 99 | + <solr:backend.button.ActionButton |
| 100 | + action="resetLogErrors" |
| 101 | + label="{f:translate(key:'solr.backend.index_queue_module.errors.reset_button')}" |
| 102 | + class="btn-sm btn-default" |
| 103 | + /> |
97 | 104 |
|
98 |
| - <div class="legend"> |
99 |
| - <span class="color" style="background: #EB813F;"></span> |
100 |
| - <f:translate key="solr.backend.index_queue_module.status.pending" /> |
101 |
| - <span id="pending_numbers"></span> |
102 |
| - </div> |
103 |
| - <div class="legend"> |
104 |
| - <span class="color" style="background: #FF3D3D;"></span> |
105 |
| - <f:translate key="solr.backend.index_queue_module.status.errors" /> |
106 |
| - <span id="error_numbers"></span> |
107 |
| - </div> |
108 |
| - <div class="legend"> |
109 |
| - <span class="color" style="background: #9FC299;"></span> |
110 |
| - <f:translate key="solr.backend.index_queue_module.status.indexed" /> |
111 |
| - <span id="indexed_numbers"></span> |
112 |
| - </div> |
113 | 105 | </div>
|
114 | 106 | </div>
|
| 107 | + </f:if> |
115 | 108 | </div>
|
| 109 | +</f:if> |
116 | 110 |
|
117 | 111 |
|
118 | 112 | <div class="row-fluid section-with-header danger-zone">
|
|
0 commit comments