accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [6/7] accumulo git commit: ACCUMULO-1480 Added header for namespaces and changed name for All and Default options
Date Thu, 10 Nov 2016 22:18:46 GMT
ACCUMULO-1480 Added header for namespaces and changed name for All and Default options


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/0f2d0222
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/0f2d0222
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/0f2d0222

Branch: refs/heads/master
Commit: 0f2d022252e647fd922800a2a807337320a6e0fd
Parents: f7a5c15
Author: Luis Tavarez <zeravat@outlook.com>
Authored: Mon Oct 31 12:56:26 2016 -0400
Committer: Luis Tavarez <zeravat@outlook.com>
Committed: Mon Oct 31 12:56:26 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/accumulo/monitor/util/Table.java    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/0f2d0222/server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java
----------------------------------------------------------------------
diff --git a/server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java b/server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java
index 1979a9c..79259ac 100644
--- a/server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java
+++ b/server/monitor/src/main/java/org/apache/accumulo/monitor/util/Table.java
@@ -155,6 +155,8 @@ public class Table {
       if (namespace == null) {
         namespace = "*";
       }
+      sb.append("<div class=\"table-caption\">Namespaces</div>\n");
+      sb.append("<hr />\n");
       sb.append("<div class='left show'><dl>\n");
       doDropdownMenu(redir, page, tableName, sb, namespaces, namespace);
       sb.append("</dl></div>\n");
@@ -252,10 +254,12 @@ public class Table {
     String namespaceUrl = String.format("/op?action=namespace&redir=%s&page=%s&table=%s&selected=",
redir, page, tableName);
 
     sb.append("<ul id=\"namespaces\">\n");
-    sb.append("<li><a ").append(namespace.equals("*") ? "class=\"active\" " : "").append("href=\"").append(namespaceUrl).append("*\">*</a></li>");
+    sb.append("<li><a ").append(namespace.equals("*") ? "class=\"active\" " : "").append("href=\"").append(namespaceUrl)
+        .append("*\">*&nbsp;(All&nbsp;Tables)</a></li>");
     for (String key : namespaces.keySet()) {
       if (key.equals("")) {
-        sb.append("<li><a ").append(namespace.equals("-") ? "class=\"active\" "
: "").append("href=\"").append(namespaceUrl).append("-\">-</a></li>");
+        sb.append("<li><a ").append(namespace.equals("-") ? "class=\"active\" "
: "").append("href=\"").append(namespaceUrl)
+            .append("-\">-&nbsp;(DEFAULT)</a></li>");
       } else {
         sb.append("<li><a ").append(namespace.equals(key) ? "class=\"active\" "
: "").append("href=\"").append(namespaceUrl).append(key).append("\">")
             .append(key).append("</a></li>");


Mime
View raw message