View | Details | Raw Unified | Return to bug 27661
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss (-1 / +3 lines)
Lines 333-340 tbody { Link Here
333
    tr {
333
    tr {
334
        &:nth-child(odd) {
334
        &:nth-child(odd) {
335
            td {
335
            td {
336
                background-color: $table-odd-row;
337
                border-right: 1px solid $table-border-color;
336
                border-right: 1px solid $table-border-color;
337
                &:not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-success):not(.bg-primary) {
338
                    background-color: $table-odd-row;
339
                }
338
            }
340
            }
339
        }
341
        }
340
    }
342
    }
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-12 lines)
Lines 1645-1662 input[type='text']:read-only:focus { Link Here
1645
    color: #CC0000;
1645
    color: #CC0000;
1646
}
1646
}
1647
1647
1648
.status_ok {
1649
    background-color: #90EE90 !important;
1650
}
1651
1652
.status_warn {
1653
    background-color: #FFA500 !important;
1654
}
1655
1656
.status_fatal {
1657
    background-color: #FF6347 !important;
1658
}
1659
1660
// Font Awesome icons
1648
// Font Awesome icons
1661
i {
1649
i {
1662
    &.error {
1650
    &.error {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-17 / +16 lines)
Lines 52-58 Link Here
52
            <tr>
52
            <tr>
53
                <th scope="row">Elasticsearch: </th>
53
                <th scope="row">Elasticsearch: </th>
54
            [% IF elasticsearch_fatal_config_error %]
54
            [% IF elasticsearch_fatal_config_error %]
55
                <td><span class="status_warn">[% elasticsearch_fatal_config_error | html %]</span></td>
55
                <td><span class="bg-warning">[% elasticsearch_fatal_config_error | html %]</span></td>
56
            [% ELSE %]
56
            [% ELSE %]
57
                <td>
57
                <td>
58
                    Version:
58
                    Version:
Lines 63-76 Link Here
63
                    |
63
                    |
64
                    Status:
64
                    Status:
65
                [% IF elasticsearch_status.running %]
65
                [% IF elasticsearch_status.running %]
66
                    <span class="status_ok">running</span>
66
                    <span class="bg-success">running</span>
67
                    |
67
                    |
68
                    Indices:
68
                    Indices:
69
                  [% FOREACH index IN elasticsearch_status.indexes %]
69
                  [% FOREACH index IN elasticsearch_status.indexes %]
70
                      [% index.index_name | html %] (count: <emph>[% index.count | html %]</emph>)[% UNLESS loop.last %], [% END %]
70
                      [% index.index_name | html %] (count: <emph>[% index.count | html %]</emph>)[% UNLESS loop.last %], [% END %]
71
                  [% END %]
71
                  [% END %]
72
                [% ELSE %]
72
                [% ELSE %]
73
                    <span class="status_warn">not running</span>
73
                    <span class="bg-warning">not running</span>
74
                [% END %]
74
                [% END %]
75
                </td>
75
                </td>
76
            [% END %]
76
            [% END %]
Lines 84-92 Link Here
84
                               [% ELSE %]<span>undefined</span>[% END %] |
84
                               [% ELSE %]<span>undefined</span>[% END %] |
85
                    Status: [% IF memcached_servers %]
85
                    Status: [% IF memcached_servers %]
86
                                [% IF memcached_running and is_memcached_still_active %]
86
                                [% IF memcached_running and is_memcached_still_active %]
87
                                    <span class="status_ok">running</span>.
87
                                    <span class="bg-success">running</span>.
88
                                [% ELSE %]
88
                                [% ELSE %]
89
                                    <span class="status_warn">not running</span>.
89
                                    <span class="bg-warning">not running</span>.
90
                                    [% IF is_psgi %]
90
                                    [% IF is_psgi %]
91
                                        <span>Remember memcached needs to be started before Plack.</span>
91
                                        <span>Remember memcached needs to be started before Plack.</span>
92
                                    [% END %]
92
                                    [% END %]
Lines 97-109 Link Here
97
                    Config read from:
97
                    Config read from:
98
                    [% SWITCH where_is_memcached_config %]
98
                    [% SWITCH where_is_memcached_config %]
99
                        [% CASE 'config_only' %]
99
                        [% CASE 'config_only' %]
100
                            <span class="status_ok">koha-conf.xml</span>
100
                            <span class="bg-success">koha-conf.xml</span>
101
                        [% CASE 'ENV_only' %]
101
                        [% CASE 'ENV_only' %]
102
                            <span class="status_warn">ENV</span> Note that the right place to define the memcached config is in your $KOHA_CONF file
102
                            <span class="bg-warning">ENV</span> Note that the right place to define the memcached config is in your $KOHA_CONF file
103
                        [% CASE 'both' %]
103
                        [% CASE 'both' %]
104
                            <span class="status_warn">ENV and koha-conf.xml</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.
104
                            <span class="bg-warning">ENV and koha-conf.xml</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.
105
                        [% CASE # nowhere %]
105
                        [% CASE # nowhere %]
106
                            <span class="status_warn">Nowhere</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.
106
                            <span class="bg-warning">Nowhere</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.
107
                    [% END %]
107
                    [% END %]
108
                  [% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %]
108
                  [% IF effective_caching_method != 'Cache::Memcached::Fast::Safe' %]
109
                    | Effective caching method: [% effective_caching_method | html %]
109
                    | Effective caching method: [% effective_caching_method | html %]
Lines 113-131 Link Here
113
            <tr><th scope="row">Zebra version: </th><td>[% zebraVersion | html %]</td></tr>
113
            <tr><th scope="row">Zebra version: </th><td>[% zebraVersion | html %]</td></tr>
114
            <tr><th scope="row">Zebra status: </th>
114
            <tr><th scope="row">Zebra status: </th>
115
            [% IF (errZebraConnection == 10000) %]
115
            [% IF (errZebraConnection == 10000) %]
116
            <td class="status_fatal"><strong>Zebra server seems not to be available. Is it started?</strong></td>
116
            <td class="bg-danger"><strong>Zebra server seems not to be available. Is it started?</strong></td>
117
            [% ELSIF (errZebraConnection) %]
117
            [% ELSIF (errZebraConnection) %]
118
            <td class="status_warn"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td>
118
            <td class="bg-warning"><strong>Error message from Zebra: [% ( errZebraConnection ) | html %]</strong></td>
119
            [% ELSE %]
119
            [% ELSE %]
120
            <td class="status_ok">Running</td>
120
            <td class="bg-success">Running</td>
121
            [% END %]
121
            [% END %]
122
            </tr>
122
            </tr>
123
            <tr>
123
            <tr>
124
                <th scope="row">Message broker: </th>
124
                <th scope="row">Message broker: </th>
125
                [% IF warnConnectBroker %]
125
                [% IF warnConnectBroker %]
126
                <td class="status_warn"><strong>Using SQL polling</strong></td>
126
                <td class="bg-warning"><strong>Using SQL polling</strong></td>
127
                [% ELSE %]
127
                [% ELSE %]
128
                <td class="status_ok">Using RabbitMQ</td>
128
                <td class="bg-success">Using RabbitMQ</td>
129
                [% END %]
129
                [% END %]
130
            </tr>
130
            </tr>
131
            <tr>
131
            <tr>
Lines 133-140 Link Here
133
              <td>[% current_date_and_time | $KohaDates  with_hours => 1 %]</td>
133
              <td>[% current_date_and_time | $KohaDates  with_hours => 1 %]</td>
134
            </tr>
134
            </tr>
135
            <tr>
135
            <tr>
136
              [% timezone_config_class = (time_zone.config_invalid) ? 'status_warn' : '' %]
136
              [% timezone_config_class = (time_zone.config_invalid) ? 'bg-warning' : '' %]
137
              [% timezone_env_class    = (time_zone.env_invalid)    ? 'status_warn' : '' %]
137
              [% timezone_env_class    = (time_zone.env_invalid)    ? 'bg-warning' : '' %]
138
              <th scope="row">Time zone: </th>
138
              <th scope="row">Time zone: </th>
139
              <td>Used: <span>[% time_zone.actual | html %]</span>
139
              <td>Used: <span>[% time_zone.actual | html %]</span>
140
                          [% IF time_zone.actual_bad_tz_fallback %]
140
                          [% IF time_zone.actual_bad_tz_fallback %]
141
- 

Return to bug 27661