Files
impala/www/threadz.tmpl
stiga-huang d08d1956cc IMPALA-8879: Fix wrong active tabs after bootstrap upgrade
After upgrading Bootstrap to 4.3.1 in the previous patch, the query page
no longer highlights which tab is being used. This is due to the removal
of ".nav-tabs > li.active > a" in bootstrap.css. So li elements in
"active" class no longer has additional styles. Instead, the styles of
"active" class is moved into to "nav-link" class in Bootstrap 4. We
should add the "active" class in the "nav-link" elements instead.

Tests:
 - Manually click throught all tabs to check the active state

Change-Id: I5c746bc4f49b30df54bd3c73ac6f1cf838260c65
Reviewed-on: http://gerrit.cloudera.org:8080/14582
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2019-10-31 03:33:43 +00:00

48 lines
1.4 KiB
Cheetah

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
{{> www/common-header.tmpl }}
{{> www/threadz_tabs.tmpl }}
<h2>Thread Groups</h2>
{{#total-threads}}
<h5>{{.}} thread(s) running</h5>
{{/total-threads}}
<a href="{{ __common__.host-url }}/thread-group?all"><h5>All threads</h5></a>
{{#thread-groups}}
<a href='{{ __common__.host-url }}/thread-group?group={{name}}'>
<h5>{{name}} : (running: {{size}}, total created: {{num_created}})</h5>
</a>
{{/thread-groups}}
{{#jvm-threads}}
<a href='{{ __common__.host-url }}/jvm-threadz'>
<h5>{{name}} : (Total: {{total}}, Daemon: {{daemon}})</h5>
</a>
{{/jvm-threads}}
<script>
$("#overview-tab").addClass("active");
</script>
{{> www/common-footer.tmpl }}