Lines 117-126
Link Here
|
117 |
<tr> |
117 |
<tr> |
118 |
<th scope="row">Elasticsearch: </th> |
118 |
<th scope="row">Elasticsearch: </th> |
119 |
[% IF elasticsearch_fatal_config_error %] |
119 |
[% IF elasticsearch_fatal_config_error %] |
120 |
<td><span class="text-bg-warning">[% elasticsearch_fatal_config_error | html %]</span></td> |
120 |
<td><span class="bg-warning-subtle">[% elasticsearch_fatal_config_error | html %]</span></td> |
121 |
[% ELSE %] |
121 |
[% ELSE %] |
122 |
[% IF elasticsearch_status.running %] |
122 |
[% IF elasticsearch_status.running %] |
123 |
<td class="text-bg-info"> |
123 |
<td class="bg-info-subtle"> |
124 |
[% ELSE %] |
124 |
[% ELSE %] |
125 |
<td> |
125 |
<td> |
126 |
[% END %] |
126 |
[% END %] |
Lines 141-147
Link Here
|
141 |
[% UNLESS loop.last %], [% END %] |
141 |
[% UNLESS loop.last %], [% END %] |
142 |
[% END %] |
142 |
[% END %] |
143 |
[% ELSE %] |
143 |
[% ELSE %] |
144 |
<span class="text-bg-warning">not running</span> |
144 |
<span class="bg-warning-subtle">not running</span> |
145 |
[% END %] |
145 |
[% END %] |
146 |
</td> |
146 |
</td> |
147 |
[% END # /IF elasticsearch_fatal_config_error %] |
147 |
[% END # /IF elasticsearch_fatal_config_error %] |
Lines 150-156
Link Here
|
150 |
<tr> |
150 |
<tr> |
151 |
<th scope="row">Memcached: </th> |
151 |
<th scope="row">Memcached: </th> |
152 |
[% IF memcached_running AND is_memcached_still_active AND where_is_memcached_config == 'config_only' %] |
152 |
[% IF memcached_running AND is_memcached_still_active AND where_is_memcached_config == 'config_only' %] |
153 |
<td class="text-bg-info"> |
153 |
<td class="bg-info-subtle"> |
154 |
[% ELSE %] |
154 |
[% ELSE %] |
155 |
<td> |
155 |
<td> |
156 |
[% END %] |
156 |
[% END %] |
Lines 169-177
Link Here
|
169 |
<span>Status:</span> |
169 |
<span>Status:</span> |
170 |
[% IF memcached_servers %] |
170 |
[% IF memcached_servers %] |
171 |
[% IF memcached_running and is_memcached_still_active %] |
171 |
[% IF memcached_running and is_memcached_still_active %] |
172 |
<span class="text-bg-info">running</span>. |
172 |
<span class="bg-info-subtle">running</span>. |
173 |
[% ELSE %] |
173 |
[% ELSE %] |
174 |
<span class="text-bg-warning">not running</span>. |
174 |
<span class="bg-warning-subtle">not running</span>. |
175 |
[% IF is_psgi %] |
175 |
[% IF is_psgi %] |
176 |
<span>Remember memcached needs to be started before Plack.</span> |
176 |
<span>Remember memcached needs to be started before Plack.</span> |
177 |
[% END %] |
177 |
[% END %] |
Lines 182-194
Link Here
|
182 |
<span>Config read from:</span> |
182 |
<span>Config read from:</span> |
183 |
[% SWITCH where_is_memcached_config %] |
183 |
[% SWITCH where_is_memcached_config %] |
184 |
[% CASE 'config_only' %] |
184 |
[% CASE 'config_only' %] |
185 |
<span class="text-bg-info">koha-conf.xml</span> |
185 |
<span class="bg-info-subtle">koha-conf.xml</span> |
186 |
[% CASE 'ENV_only' %] |
186 |
[% CASE 'ENV_only' %] |
187 |
<span class="text-bg-warning">ENV</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file</span> |
187 |
<span class="bg-warning-subtle">ENV</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file</span> |
188 |
[% CASE 'both' %] |
188 |
[% CASE 'both' %] |
189 |
<span class="text-bg-warning">ENV and koha-conf.xml</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you should not export the memcached config from ENV.</span> |
189 |
<span class="bg-warning-subtle">ENV and koha-conf.xml</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. To avoid any misunderstanding you should not export the memcached config from ENV.</span> |
190 |
[% CASE # nowhere %] |
190 |
[% CASE # nowhere %] |
191 |
<span class="text-bg-warning">Nowhere</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined.</span> |
191 |
<span class="bg-warning-subtle">Nowhere</span> <span>Note that the right place to define the memcached config is in your $KOHA_CONF file. Currently you do not have a valid memcached configuration defined.</span> |
192 |
[% END %] |
192 |
[% END %] |
193 |
[% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %] |
193 |
[% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %] |
194 |
| <span>Effective caching method:</span> [% effective_caching_method | html %] |
194 |
| <span>Effective caching method:</span> [% effective_caching_method | html %] |
Lines 202-223
Link Here
|
202 |
<tr> |
202 |
<tr> |
203 |
<th scope="row">Zebra status: </th> |
203 |
<th scope="row">Zebra status: </th> |
204 |
[% IF (errZebraConnection == 10000) %] |
204 |
[% IF (errZebraConnection == 10000) %] |
205 |
<td class="text-bg-danger"><strong>Zebra server seems not to be available. Is it started?</strong></td> |
205 |
<td class="bg-danger-subtle"><strong>Zebra server seems not to be available. Is it started?</strong></td> |
206 |
[% ELSIF (errZebraConnection) %] |
206 |
[% ELSIF (errZebraConnection) %] |
207 |
<td class="text-bg-warning"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td> |
207 |
<td class="bg-warning-subtle"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td> |
208 |
[% ELSE %] |
208 |
[% ELSE %] |
209 |
<td class="text-bg-info">Running</td> |
209 |
<td class="bg-info-subtle">Running</td> |
210 |
[% END %] |
210 |
[% END %] |
211 |
</tr> |
211 |
</tr> |
212 |
<tr> |
212 |
<tr> |
213 |
<th scope="row">Message broker: </th> |
213 |
<th scope="row">Message broker: </th> |
214 |
[% IF warnConnectBroker %] |
214 |
[% IF warnConnectBroker %] |
215 |
<td class="text-bg-warning"><strong>Using SQL polling (Fallback, Error connecting to RabbitMQ)</strong></td> |
215 |
<td class="bg-warning-subtle"><strong>Using SQL polling (Fallback, Error connecting to RabbitMQ)</strong></td> |
216 |
[% ELSE %] |
216 |
[% ELSE %] |
217 |
[% IF Koha.Preference('JobsNotificationMethod') == 'polling' %] |
217 |
[% IF Koha.Preference('JobsNotificationMethod') == 'polling' %] |
218 |
<td class="text-bg-info">Using SQL polling</td> |
218 |
<td class="bg-info-subtle">Using SQL polling</td> |
219 |
[% ELSE %] |
219 |
[% ELSE %] |
220 |
<td class="text-bg-info">Using RabbitMQ</td> |
220 |
<td class="bg-info-subtle">Using RabbitMQ</td> |
221 |
[% END %] |
221 |
[% END %] |
222 |
[% END %] |
222 |
[% END %] |
223 |
</tr> |
223 |
</tr> |
Lines 226-233
Link Here
|
226 |
<td>[% current_date_and_time | $KohaDates with_hours => 1 %]</td> |
226 |
<td>[% current_date_and_time | $KohaDates with_hours => 1 %]</td> |
227 |
</tr> |
227 |
</tr> |
228 |
<tr> |
228 |
<tr> |
229 |
[% timezone_config_class = (time_zone.config_invalid) ? 'text-bg-warning' : '' %] |
229 |
[% timezone_config_class = (time_zone.config_invalid) ? 'bg-warning-subtle' : '' %] |
230 |
[% timezone_env_class = (time_zone.env_invalid) ? 'text-bg-warning' : '' %] |
230 |
[% timezone_env_class = (time_zone.env_invalid) ? 'bg-warning-subtle' : '' %] |
231 |
<th scope="row">Time zone: </th> |
231 |
<th scope="row">Time zone: </th> |
232 |
<td> |
232 |
<td> |
233 |
<span>Used:</span> <span>[% time_zone.actual | html %]</span> |
233 |
<span>Used:</span> <span>[% time_zone.actual | html %]</span> |