Repository: incubator-impala
Updated Branches:
  refs/heads/master 025b5dbbb -> 1e73d7fc3


Three misc webpage changes

1. Change the content width to 80% of the screen. Lots of our webpages
are very wide, and were squashed into the previous fixed width.

2. Fix a bug where some thread group tables weren't sortable or
searchable.

3. Make the backends list a searchable, sortable table.

Change-Id: Ica0578dabb7e27e6fd45ee4f31a1418ac3adc891
Reviewed-on: http://gerrit.cloudera.org:8080/6045
Reviewed-by: Matthew Jacobs <[email protected]>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/53e9b68e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/53e9b68e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/53e9b68e

Branch: refs/heads/master
Commit: 53e9b68ec348c8f80e510448d8855c23778104fc
Parents: 025b5db
Author: Henry Robinson <[email protected]>
Authored: Thu Feb 16 17:35:40 2017 -0800
Committer: Impala Public Jenkins <[email protected]>
Committed: Thu Feb 23 21:30:25 2017 +0000

----------------------------------------------------------------------
 www/backends.tmpl      | 28 +++++++++++++++++++++++-----
 www/common-header.tmpl |  2 +-
 www/thread-group.tmpl  |  4 ++--
 3 files changed, 26 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/53e9b68e/www/backends.tmpl
----------------------------------------------------------------------
diff --git a/www/backends.tmpl b/www/backends.tmpl
index 9f31976..cef77b7 100644
--- a/www/backends.tmpl
+++ b/www/backends.tmpl
@@ -20,10 +20,28 @@ under the License.
 
 <h2>Known backend(s): {{%backends}}</h2>
 
-<ul class="list-group">
-{{#backends}}
-<li class="list-group-item">{{.}}</li>
-{{/backends}}
-</ul>
+<table id="backends" class='table table-hover table-bordered'>
+  <thead>
+    <tr>
+      <th>Backend</th>
+    </tr>
+  </thead>
+  <tbody>
+    {{#backends}}
+    <tr>
+      <td>{{.}}</td>
+    </tr>
+    {{/backends}}
+  </tbody>
+</table>
+
+<script>
+    $(document).ready(function() {
+        $('#backends').DataTable({
+            "order": [[ 0, "desc" ]],
+            "pageLength": 100
+        });
+    });
+</script>
 
 {{> www/common-footer.tmpl}}

http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/53e9b68e/www/common-header.tmpl
----------------------------------------------------------------------
diff --git a/www/common-header.tmpl b/www/common-header.tmpl
index 9dd1788..d981f09 100644
--- a/www/common-header.tmpl
+++ b/www/common-header.tmpl
@@ -44,7 +44,7 @@ common-footer.tmpl) }}
         </nav>
       </div>
     </header>
-<div class='container'>
+<div class='container' style='width:80%'>
 {{#error}}
 <div class="alert alert-danger">
   <strong>Error:</strong>

http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/53e9b68e/www/thread-group.tmpl
----------------------------------------------------------------------
diff --git a/www/thread-group.tmpl b/www/thread-group.tmpl
index 19730c6..143a029 100644
--- a/www/thread-group.tmpl
+++ b/www/thread-group.tmpl
@@ -20,7 +20,7 @@ under the License.
 
 <h2>Thread Group: {{thread-group.category}}</h2>
 
-<table id="{{thread-group.category}}-tbl" class='table table-hover 
table-bordered'
+<table id="threads-tbl" class='table table-hover table-bordered'
        style='table-layout:fixed; word-wrap: break-word'>
   <thead>
     <tr>
@@ -44,7 +44,7 @@ under the License.
 
 <script>
     $(document).ready(function() {
-        $('#{{thread-group.category}}-tbl').DataTable({
+        $('#threads-tbl').DataTable({
             "order": [[ 1, "desc" ]],
             "pageLength": 100
         });

Reply via email to