incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [45/50] [abbrv] Initial Blur Console commit.
Date Fri, 17 May 2013 03:25:12 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/javascripts/users.js
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/javascripts/users.js b/blur-admin/app/assets/javascripts/users.js
deleted file mode 100644
index 50b8d65..0000000
--- a/blur-admin/app/assets/javascripts/users.js
+++ /dev/null
@@ -1,105 +0,0 @@
-$(document).ready(function(){
-  //Ajax request that serializes your columns and persists them to the DB
-  var save_pref = function(){
-    var user_id = $('#show_user_wrapper').attr('data-user-id');
-    $.ajax(Routes.user_preference_path(user_id, 'column', {format: 'json'}),
-    {
-      type: 'PUT',
-      data: $('#my-cols').sortable('serialize'),
-    });
-  };
-
-  //Sortable list of your chosen columns
-  $('#my-cols').sortable({
-    connectWith: "#actual-trash",
-    stop: function(){
-      save_pref();
-    }
-  });
-
-  //Trash can droppable, removes from your chosen preferences
-  $('#actual-trash').droppable({
-    drop: function(event, ui){
-      $(ui.draggable).remove();
-      $('.sort#my-cols').sortable('refresh');
-      $('.fam#' + $(ui.draggable).attr('id')).toggleClass('my-select');
-      save_pref();
-    }
-  });
-
-  //Click event for selecting a column from all possible columns
-  $('.fam').live('click', function(){
-    $(this).toggleClass('my-select');
-    var clicked = $('#' + $(this).attr('id') + '.sel-fam');
-
-    //if the element isnt in the list of selected columns
-    //add the column to your pref list
-    if (clicked.length == 0)
-    {
-      $('#no-saved').hide();
-      var app = $(this).clone().removeClass('fam my-select').addClass('sel-fam');
-      $('#my-cols').append(app.hide());
-      app.fadeIn('slow', function(){ save_pref(); });
-    }
-
-    //else the element is already in the list of selected columns
-    //remove it from the list of selected columns
-    else
-    {
-      clicked.fadeOut('slow', function(){
-        clicked.remove();
-        if ($('#my-cols').children().length == 1)
-        {
-          $('#no-saved').fadeIn('fast');
-        }
-        save_pref();
-      });
-    }
-  });
-
-  $('#pref-title').on('ajaxStart', function(){
-    $(this).removeClass('hidden-spinner');
-  });
-  $('#pref-title').on('ajaxStop', function(){
-    $(this).addClass('hidden-spinner');
-  });
-
-  //*******Zookeeper dropdown code********
-  //Helper functions
-  var checkSelectionStatus = function(){
-    if ($('#zookeeper_pref option:selected').val() != 1){
-      $('#zookeeper_num').hide();
-    } else{
-      $('#zookeeper_num').show();
-    }
-    $('#zookeeper_submit').removeAttr('disabled');
-  };
-  //Page Listeners
-  $('#zookeeper_pref').on('change', function(){
-   checkSelectionStatus();
-  });
-  $('#zookeeper_num').on('change', function(){
-    $('#zookeeper_submit').removeAttr('disabled');
-  });
-  $('#zookeeper_submit').on('click', function(){
-    var selected_pref = $('#zookeeper_pref option:selected').val();
-    var selected_zk = '';
-    if (selected_pref == 1 || 2){
-      selected_zk = $('#zookeeper_num option:selected').val();
-    }
-    var user_id = $('#show_user_wrapper').attr('data-user-id');
-    $.ajax(Routes.user_preference_path(user_id, 'zookeeper', {format: 'json'}), {
-      type: 'PUT',
-      data: {
-        name: selected_pref,
-        value: selected_zk
-      }
-    });
-    $('#zookeeper_submit').attr('disabled', 'disabled');
-  });
-  //Code for onLoad
-  checkSelectionStatus();
-  $('#zookeeper_submit').attr('disabled', 'disabled');
-
-});
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/application.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/application.scss b/blur-admin/app/assets/stylesheets/application.scss
deleted file mode 100644
index 69520ea..0000000
--- a/blur-admin/app/assets/stylesheets/application.scss
+++ /dev/null
@@ -1,32 +0,0 @@
-//= require_self
-//= require ui.dynatree
-//= require jquery-ui
-
-// over ride any bootstrap variables
-$gridColumnWidth: 80px;
-
-//import libraries and root styles
-@import "bootstrap";
-@import "mixins";
-@import "base";
-@import "help";
-@import "navigation";
-@import "bootstrap_addons";
-
-// JQuery ones to look at
-@import "jquery.contextMenu";
-@import "jquery.osxFinder";
-@import "jquery.timepicker";
-
-// Application specific pages
-@import "search";
-@import "blur_queries";
-@import "blur_tables";
-@import "dashboard";
-@import "zookeeper";
-@import "user_session";
-@import "users";
-@import "hdfs";
-@import "hdfs_metrics";
-@import "audits";
-@import "errors";

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/audits.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/audits.scss b/blur-admin/app/assets/stylesheets/audits.scss
deleted file mode 100644
index a97ad0d..0000000
--- a/blur-admin/app/assets/stylesheets/audits.scss
+++ /dev/null
@@ -1,90 +0,0 @@
-#audits_wrapper{
-  #audits_table{
-      .row {
-        & > div:first-child {
-          vertical-align: top;
-          padding-top: 15px;
-        }
-
-        & > div:last-child {
-          float: right;
-        }
-
-        .span2, .span3{
-          float: right;
-        }
-
-        .span2{
-          width: 325px;
-          input{
-            width: 100px;
-            margin-right: 5px;
-          }
-          label{
-            display: inline-block;
-            width: 300px;
-            margin-bottom: 0px;
-          }
-          button{
-            margin-bottom: 10px;
-          }
-          .dataTables_processing{
-            display: none;
-          }
-        }
-      }
-
-      .dataTables_filter{ 
-        width: 100%;
-        float: right;
-        input{ width: 96%; }
-      }
-      
-      .dataTables_info {
-        padding-top: 8px;
-      }
-
-      .dataTables_processing {
-        padding-top: 8px;
-      }
-    th{
-      cursor: pointer;
-      margin-right: 10px;
-      .header_content {
-        position: relative;
-        div {
-          display: inline-block;
-          margin-right: 10px;
-        }
-      }
-
-      &.sorting_disabled{
-        cursor: default;
-      }
-
-      &.headerSortDown{
-        .icon-chevron-up{ display: none; }
-        .icon-chevron-down{ display: block; }
-      }
-
-      &.headerSortUp{
-        .icon-chevron-up{ display: block; }
-        .icon-chevron-down{ display: none; }
-      }
-
-      i{
-        position:absolute;
-        display: none;
-        &.icon-chevron-up{
-          top: 5px;
-          right: 10px;
-        }
-
-        &.icon-chevron-down{
-          bottom: 5px;
-          right: 10px;
-        }
-      }
-    }
-  }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/base.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/base.scss b/blur-admin/app/assets/stylesheets/base.scss
deleted file mode 100644
index d1236b0..0000000
--- a/blur-admin/app/assets/stylesheets/base.scss
+++ /dev/null
@@ -1,175 +0,0 @@
-$base-theme-color: #f6a828;
-
-$red-state-color: #B81900;
-$red-border-color: #CD0A0A;
-$green-border-color: #62A630;
-
-$table-hd-color: #E4EDFF;
-$table-hd-text: #667495;
-
-$grey-color: #EEEEEE;
-$grey-div-color: #F0F0F0;
-
-$row-hover: #FFE4A3;
-
-$font-color: #555;
-$border_color: #999;
-$zk-header-color: #93A7AC;
-
-$border_width: 1px;
-$border_style: solid;
-
-$twitter-border: 1px solid #ccc;
-
-$blue-dashboard-color: #93A7AC;
-$faded-blue-dashboard-color: #CED7DA;
-$green-dashboard-color:  #7DC77D;
-$blue-chart-dashboard-color: #AFD8F8;
-$red-dashboard-color: #FF1919;
-$yellow-dashboard-color: #EDC240;
-
-// Page settings
-$footer-height: 45px;
-
-html{
-  height: 100%;
-  //min-height: 400px;
-	min-width: 1240px;
-  overflow: auto;
-  body{
-    position: relative;
-    padding-bottom: $footer-height;
-  }
-}
-h2{
-    color:$blue-dashboard-color;
-}
-#modal{
-	max-height:500px;
-	overflow:none;
-	.modal-body{
-		max-height:440px;
-		overflow-y:auto;
-		margin-bottom:60px;
-	}
-	.modal-footer{
-		position:absolute;
-		bottom:0px;
-		width: 530px;
-	}
-}
-
-input[placeholder].placeholder{
-	color: #888 !important;
-}
-
-#login_wrapper{
-	#error_explanation{
-		ul{
-			list-style: none;
-			color:red;
-		}
-	}
-
-	.help-inline{
-		color: red;
-		padding: 0px;
-		margin: 5px;
-	}
-
-	input:not(.btn){
-		display:block;
-		margin:auto;
-	}
-}
-
-.dynatree-connector ~ .dynatree-title{
-	cursor: default;
-}
-
-// Tree overrides
-ul.dynatree-container {
-	background-color: inherit !important;
-	color: inherit !important;
-	border: none !important;
-	a:focus, span.dynatree-focused a:link {
-		background-color: inherit !important;
-	}
-	li {
-	  line-height: 16px;
-		a:focus {
-			outline: none !important;
-		}
-		a {
-			background-color: inherit !important;
-			color: inherit !important;
-		}
-		border: none !important
-	}
-}
-.modal-list{
-  &.no-well{ background-color: white; }
-  list-style-type:none;
-  max-height:400px;
-  overflow: auto;
-  padding: 5px;
-  background-color: whitesmoke;
-  li{
-    &.error div{
-      background-color: rgba(218, 79, 73, .8);
-      color: white;
-      border-color: #DA4F49;
-      &.icon:hover{
-        background-color: rgba(218, 79, 73, .6);
-      }
-    }
-
-    &.no-error div{
-      //background-color: rgba(91, 183, 91, .9);
-      //color: white;
-      //border-color: #5BB75B;
-      &.icon:hover{
-        //background-color: rgba(91, 183, 91, .7);
-      }
-    }
-
-    &:not(:last-child){
-      padding-bottom: 3px;
-    }
-    height: 30px;
-    div{
-      border: solid 1px #CCC;
-    }
-    .icon ~ .info{
-      @include border-radius-left(0px);
-    }
-    .info{
-      background-color: white;
-      padding: 5px;
-      @include border-radius;
-      overflow-x: hidden;
-      text-overflow: ellipsis;
-      white-space: nowrap;
-    }
-    .icon{
-      float: left;
-      display: inline-block;
-      @include border-radius-left;
-      @include clearfix;
-      background-color: whitesmoke;
-      border-right: none;
-      cursor: pointer;
-      vertical-align: top;
-      &:hover{
-        background-color: #999;
-        border-color: #999;
-      }
-      & > i {
-        margin: 6px;
-        margin-bottom: 7px;
-        background-color: transparent;
-      }
-    }
-  }
-}
-.hidden{ display: none !important; }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/blur_queries.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/blur_queries.scss b/blur-admin/app/assets/stylesheets/blur_queries.scss
deleted file mode 100644
index 7754a70..0000000
--- a/blur-admin/app/assets/stylesheets/blur_queries.scss
+++ /dev/null
@@ -1,125 +0,0 @@
-#queries-table_wrapper > .row:first-child > div:last-child {
-  float: right;
-}
-
-#blur_queries_wrapper {
-  padding-top: 2em;
-  padding-bottom: 2em;
-  @include standard-font;
-  @include clearfix;
-  .dataTables_filter{
-    width: 100%;
-    float: right;
-    input{
-      width: 96%;
-    }
-  }
-
-  .span2{
-    position: relative;
-    right:200px;
-    top:35px;
-  }
-  .span4{
-    position: relative;
-    left: 100px;
-    .dataTables_info{
-      text-align: center;
-    }
-  }
-  .dataTables_info {
-    padding-top: 8px;
-  }
-  .row > *:first-child {
-    vertical-align: top;
-    padding-top: 15px;
-  }
-  .range_select{
-    select{
-      width: 100px;
-    }
-  }
-  .dataTables_processing {
-    padding-top: 8px;
-  }
-  #queries-table{
-    table-layout:relative;
-    font-weight: normal;
-    td{
-      vertical-align: middle;
-      word-wrap: break-word
-    }
-    .cancel_query_button{
-      margin: 0;
-    }
-
-    form.cancel {
-      display: inline-block;
-      @include ie7-inline-block;
-      margin-right: 3px;
-      margin-bottom: 0;
-    }
-    tbody tr:not(.oldRunning){
-      & + .oldRunning, .oldRunning:first-child{
-        td{
-          border-top: 1px solid #FF0000;
-        }
-      }
-      height: 45px;
-    }
-    .oldRunning{
-      td{
-        background: rgba(247, 225, 225, 0.8);
-        border-bottom: 1px solid #FF0000;
-      }
-    }
-    th{
-      cursor: pointer;
-      margin-right: 10px;
-      .header_content {
-        position: relative;
-        div {
-          display: inline-block;
-          margin-right: 10px;
-        }
-      }
-
-      &.headerSortDown{
-        .icon-chevron-up{
-          display: none;
-        }
-        .icon-chevron-down{
-          display: block;
-        }
-      }
-
-      &.headerSortUp{
-        .icon-chevron-up{
-          display: block;
-        }
-        .icon-chevron-down{
-          display: none;
-        }
-      }
-
-      i{
-        position:absolute;
-        display: none;
-        &.icon-chevron-up{
-          top: 5px;
-          right: 10px;
-        }
-
-        &.icon-chevron-down{
-          bottom: 5px;
-          right: 10px;
-        }
-      }
-    }
-  }
-}
-
-#more-info-table {
-  td { color: #555; }
-  .more-info-label { white-space: nowrap; font-weight: bold;}
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/blur_tables.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/blur_tables.scss b/blur-admin/app/assets/stylesheets/blur_tables.scss
deleted file mode 100644
index 5bf5276..0000000
--- a/blur-admin/app/assets/stylesheets/blur_tables.scss
+++ /dev/null
@@ -1,92 +0,0 @@
-#blur_tables {
-  width: 99%;
-  border: none;
-  margin: 15px 10px 0;
-  table { margin-bottom: 5px; }
-  .active a, .active a:hover{ background-color:#F9F9F9; }
-}
-#tables-wrapper{
-  border: $twitter-border;
-  padding:10px;
-  @include border-radius(5px);
-}
-
-.cluster-tabs{
-  margin:15px 0;
-  .active a, .active a:hover{ background-color:#F9F9F9; }
-}
-.bulk-action-selector{ margin: 10px 5px 10px 0px; }
-tr.highlighted-row td{ background:#FAD08A !important; }
-.live-col{
-  color: $green-border-color ! important;
-}
-.disabled-col{
-  color: $red-border-color ! important;
-}
-.popover-close{
-  position:absolute;
-  top:15px;
-  right:15px;
-  &:hover{
-    cursor: pointer;
-    background-color:#CCC;
-    border-radius:3px;
-  }
-}
-.terms{
-  color:#08C;
-  text-decoration:none;
-  cursor:pointer;
-  &:hover{
-    color:#048;
-    text-decoration:underline;
-  }
-}
-.reset-term-search{
-  display:none;
-}
-
-.terms-list{
-  list-style-type:none;
-  max-height:400px;
-  overflow-y:auto;
-  padding:5px;
-  padding-bottom: 0px;
-  .uneditable-input{
-    margin-bottom: 0px;
-  }
-}
-.search-term-link{
-  cursor:pointer;
-  &:hover{
-    background-color:#CCC;
-  }
-}
-.term-input{
-  cursor:default;
-  & > span{
-    cursor:text;
-    padding-left:10px;
-  }
-}
-.more-terms{
-  margin-top:10px;
-}
-.table .checkbox-td{
-  width:20px;
-  text-align: center;
-}
-
-.popover{
-  #loading-spinner{
-    padding: 5px;
-  }
-}
-.comment_row{
-  width: 250px;
-}
-.blur_table_row_count{
-  width:150px;
-}
-
-th:not(.sorttable_nosort) { cursor: pointer; }

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/bootstrap_addons.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/bootstrap_addons.scss b/blur-admin/app/assets/stylesheets/bootstrap_addons.scss
deleted file mode 100644
index 2745167..0000000
--- a/blur-admin/app/assets/stylesheets/bootstrap_addons.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-input[type="text"],input[type="email"],input[type="password"],textarea,select{color:#000 !important;}
-
-table {
-  margin: 1em 0;
-  clear: both;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/dashboard.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/dashboard.scss b/blur-admin/app/assets/stylesheets/dashboard.scss
deleted file mode 100644
index 265f515..0000000
--- a/blur-admin/app/assets/stylesheets/dashboard.scss
+++ /dev/null
@@ -1,161 +0,0 @@
-@mixin box-title {
-  position:absolute;
-  display:block;
-  top:-18px;
-  left:20px;
-  background:#fff;
-}
-
-@mixin zoo-widget {
-  border-top:$twitter-border;
-  padding-top:20px;
-  position:relative;
-}
-
-@mixin zoo-status {
-	text-align: center;
-  display: inline-block;
-  padding:1px 15px 1px;
-  margin: 2px 0 2px;
-  &.important{font-style:italic;}
-}
-
-#zookeepers_wrapper, #hdfs_dash_wrapper {
-  @include standard-font;
-  @include zoo-widget;
-  margin-top: 2em;
-
-  .zookeeper_info, .hdfs_info {
-    width: 450px;
-    margin: 0px 10px 20px 20px;
-    display: inline-block;
-    border: 1px solid;
-    font-size: 15px;
-    border-color: $blue-dashboard-color;
-    @include border-radius(5px);
-
-    table{ margin:0; width:100%; }
-    table tbody th { text-align:center; vertical-align:middle; }
-    .status-bar{ @include border-radius() }
-
-    &:hover{
-      cursor: pointer;
-      background: #F4F5F6;
-    }
-  }
-
-  .zookeeper-title, .hdfs-title {
-    font-size: 130%;
-    padding: 5px 10px;
-    text-align: left;
-		@include border-radius-bottom(0);
-    img {
-      height: 18px;
-    }
-  }
-
-	.hdfs-body {
-		min-height: 177px;
-	}
-
-  .zookeeper-body, .hdfs-body {
-    width: 430px;
-    margin: 10px;
-
-    td {text-align: center;}
-    h6{ color: $font-color; }
-
-    .zookeeper-cont-info, .zookeeper-shard-info {
-      width: 65px;
-      vertical-align: middle;
-      .zk-shard-info { text-align: right; }
-      .zk-cont-info{ text-align: left; }
-    }
-
-    .hdfs-chart { margin: 0 0 10px 30px; }
-    .cont-chart, .shard-chart { margin-left: 5px; }
-
-    .query-warning {
-      color: $red-dashboard-color;
-      margin-top: 10px;
-    }
-
-    .chart-title-text {
-      margin-top: -136px;
-      z-index: 1;
-    }
-
-    .legend{
-      margin: -124px 0 0 77px;
-      z-index: 1;
-      h6{ float: left; }
-
-      .legend-box {
-        width: 12px;
-        height: 12px;
-        float: left;
-        margin: 2px 5px 0 0;
-        border: 1px solid $border_color;
-      }
-
-      .healthy{ background-color: $green-dashboard-color; }
-      .corrupt{ background-color: $blue-chart-dashboard-color; }
-      .missing{ background-color: $red-dashboard-color; }
-      .under-replicated{ background-color: $yellow-dashboard-color; }
-    }
-
-    .error-label{ color: $red-dashboard-color; }
-
-    .zk-chart{
-      $zk-size: 135px;
-      width: $zk-size;
-      line-height: $zk-size;
-      height: $zk-size;
-      position: relative;
-      text-align: center;
-    }
-
-    .hdfs-chart-container {
-      $hdfs-size: 175px;
-      width: $hdfs-size;
-      height: $hdfs-size;
-      position: relative;
-      text-align: center;
-    }
-
-    .hdfs-chart { margin-top: -50px }
-
-    .hdfs-bar-container {
-      width: 130px;
-      padding-right: 20px;
-    }
-  }
-
-  #zookeepers,#hdfses{ height: 100%; }
-	h2 { color: $zk-header-color; @include box-title;}
-
-  .progress-status{
-    background-image: none;
-    position: relative;
-    margin: 0px;
-    @include border-radius();
-    .bar{
-      @include border-radius();
-      background-image: none;
-    }
-  }
-  .red-bar { background-color: $red-dashboard-color; }
-  .faded-bar { background-color: $faded-blue-dashboard-color; }
-  .green-bar { background-color: $green-dashboard-color; }
-  .yellow-bar { background-color: $yellow-dashboard-color; }
-
-  span.title-subtle{
-    float: right;
-    opacity: .7;
-  }
-
-  .label{
-    background-color: $blue-dashboard-color;
-    width: 430px;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/errors.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/errors.scss b/blur-admin/app/assets/stylesheets/errors.scss
deleted file mode 100644
index 92a0394..0000000
--- a/blur-admin/app/assets/stylesheets/errors.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-#error_wrapper{
-  h1 {
-    text-align:center;
-  }
-  h2 {
-    text-align:center;
-    color:black;
-  }
-  img {
-    display: block;
-    margin-left: auto;
-    margin-right: auto;
-  }
-  h3 {
-    text-align:center;
-    color:black;
-  }
-}
-#error_message {
-  display: block;
-  margin-left:auto;
-  margin-right:auto;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/hdfs.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/hdfs.scss b/blur-admin/app/assets/stylesheets/hdfs.scss
deleted file mode 100644
index 7429ea2..0000000
--- a/blur-admin/app/assets/stylesheets/hdfs.scss
+++ /dev/null
@@ -1,129 +0,0 @@
-#newFolder {
-  text-align: center;
-  input {
-    width: 20em;
-  }
-}
-
-
-#hdfs_wrapper{
-  @include standard-font;
-  padding-bottom: 20px;
-  @include box-sizing(border-box);
-  height: 300px;
-
-  #hdfs_browser {
-    background-color: #F8F8F8;
-    @include border;
-    @include border-radius;
-    overflow-y: auto;
-    div.innerWindow {
-      @include border;
-      background-color: white;
-      .noFiles {
-        font-size: 1.2em;
-        font-style: italic;
-        text-align: center;
-      }
-      >ul>li {
-        &.file, &.folder, &.hdfs_instance {
-          a {
-            @include box-sizing(border-box);
-            display: block;
-            width: 225px;
-            overflow-x: hidden;
-            text-overflow: ellipsis;
-            white-space: nowrap;
-            padding-right: 20px;
-          }
-        }
-        &.folder, &.hdfs_instance {
-          background: url("expand_folder.png") no-repeat scroll right center transparent;
-        }
-        &.file a {
-          background: url("file16.png") no-repeat scroll left center transparent;
-          padding-left: 20px;
-        }
-        &.hdfs_instance a {
-          background: url("database16.png") no-repeat scroll left center transparent;
-          padding-left: 20px;
-        }
-        &.folder a {
-          background: url("folder16.png") no-repeat scroll left center transparent;
-          padding-left: 20px;
-        }
-        &:hover, &.rclicked{
-          border:  1px solid #B8D6FD;
-        }
-        &.osxSelected {
-          background-color:#3875D7;
-          border:  1px solid #3875D7;
-          a {
-            color: white;
-          }
-        }
-      }
-    }
-  }
-
-  #file_details_table {
-    tr:nth-child(even) { background-color: white; };
-    tr:nth-child(odd) { background-color: $grey-div-color; }
-    table { margin: 0; @include border;}
-    th {
-      background-color: $table-hd-color;
-      color: $table-hd-text;
-    }
-    th.name, td.name {text-align: left; }
-    th, td {
-      @include standard-font;
-      text-align: center;
-    }
-    tr:hover {
-      cursor: pointer;
-      background: $row-hover;
-    }
-  }
-
-  .to-cut {
-    a { color: #AAA; }
-  }
-}
-
-#modal{
-  max-height: 600px;
-  .search-info-section{
-    width: 49%;
-    display: inline-block;
-    vertical-align: top;
-    .radial-graph{
-      position: relative;
-      text-align: center;
-      height: 400px;
-      width: 100%;
-      path{
-        cursor: pointer;
-        &:hover{
-          opacity: .6;
-        }
-      }
-      .graphtip{
-        position: absolute;
-        display: block;
-        z-index: 50;
-        #tipcontent{
-          padding: 1px 6px 1px 6px;
-          border: 4px solid #e2e2e2;
-          max-width: 400px;
-          background: white;
-          color: black;
-          @include border-radius(5px);
-        }
-      }
-    }
-  }
-  .hidden{ display: none; }
-  #upload_file_warning{ color: red; font-weight: bold; }
-}
-
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/hdfs_metrics.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/hdfs_metrics.scss b/blur-admin/app/assets/stylesheets/hdfs_metrics.scss
deleted file mode 100644
index 3ca2f69..0000000
--- a/blur-admin/app/assets/stylesheets/hdfs_metrics.scss
+++ /dev/null
@@ -1,110 +0,0 @@
-$title_height: 35px;
-$graph_height: 240px;
-$total_graph_height: $graph_height + 60px;
-$instance_height: $title_height + $total_graph_height;
-
-@mixin graph_component{
-	display: inline-block;
-	@include box-sizing(border-box);
-}
-
-@mixin clickable_title{
-	height: $title_height;
-	h3{ line-height: $title_height; }
-	text-align: center;
-	border: 1px solid #ccc;
-	@include gradient-vertical(#fff, #F4F4F4);
-}
-
-@mixin clickable{
-	cursor: pointer;
-	&:hover{
-		opacity: .6;
-	}
-}
-
-#metrics_page_wrapper {
-	.create_graph_prompt{
-		margin-top: 10px;
-		@include clickable_title;
-		@include clickable;
-	}
-	.joined_instance{
-		.graph_title{
-			position: relative;
-			i{
-				position: absolute;
-				top: 10px;
-				right: 10px;
-				@include clickable;
-			}
-		}
-	}
-
-	.graph_instance, .joined_instance {
-		margin: 10px 0 10px 0;
-		position: relative;
-		height: $instance_height;
-		&:not(:last-child){
-			.graph_content{
-				border-bottom: none;
-			}
-		}
-		.graph_title{
-			@include clickable_title;
-			border-bottom: none;
-		}
-		.graph_content{
-			@include graph_component;
-			width: 100%;
-			height: $total_graph_height;
-			border: 1px solid #ccc;
-			position: absolute;
-			.graph_data{
-				@include box-sizing(border-box);
-				width: 100%;
-				padding: 10px 10px 0 10px;
-				.graph{
-          margin: 5px 5px 5px 5px;
-					height: $graph_height - 20;
-				}
-			}
-      .graph_info {
-				padding: 0 50px 0 205px;
-        bottom: 0;
-        .graph-info-table {
-          width: 100%;
-          margin: -5px 0 0 0;
-          .slider-info{
-            text-align: right;
-            .slider-time{
-              text-align: right;
-              width: 14px;
-            }
-            .min-date, .max-date {
-              text-align: right;
-              width: 100px;
-            }
-            .slider-redraw { margin: 0 5px 9px 0; }
-          }
-          .slider-box {
-            width: 350px;
-            .slider{
-              width: 300px;
-              margin-right: 15px;
-              float: right;
-            }
-          }
-          span.axis-value{
-            font-weight: bold;
-          }
-        }
-      }
-		}
-	}
-  .loading-spinner {
-    float: left;
-    position: absolute;
-    padding: 9px 0 0 9px;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/help.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/help.scss b/blur-admin/app/assets/stylesheets/help.scss
deleted file mode 100644
index 6c55908..0000000
--- a/blur-admin/app/assets/stylesheets/help.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-
-#page-help{ text-decoration: none; }
-#help-window{
-  overflow: auto;
-  height: 600px;
-	max-width: 500px;
-  .help-section{
-    cursor: pointer;
-    margin: 2px;
-    padding: 8px;
-    padding-left: 10px;
-    background: #EEE;
-    @include standard-border;
-    .help-label{
-      margin: 0px;
-      margin-bottom: 5px;
-    }
-    .head{
-      margin-bottom: 2px;
-    }
-    ul{ margin-top: 3px; }
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/mixins.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/mixins.scss b/blur-admin/app/assets/stylesheets/mixins.scss
deleted file mode 100644
index ce982cb..0000000
--- a/blur-admin/app/assets/stylesheets/mixins.scss
+++ /dev/null
@@ -1,60 +0,0 @@
-// Fonts
-@mixin standard-font {
-  font-weight: bold;
-  color: $font-color;
-}
-
-// Borders
-@mixin border        { border:        $border_width $border_style $border_color; }
-@mixin border-top    { border-top:    $border_width $border_style $border_color; }
-
-@mixin border-radius-bottom($radius:5px) {
-	-webkit-border-bottom-left-radius: $radius;
-	-webkit-border-bottom-right-radius: $radius;
-	-moz-border-radius-bottomleft: $radius;
-	-moz-border-radius-bottomright: $radius;
-}
-
-@mixin border-radius-top($radius:5px) {
-  -webkit-border-top-left-radius: $radius;
-  -webkit-border-top-right-radius: $radius;
-  -moz-border-radius-topleft: $radius;
-  -moz-border-radius-topright: $radius;
-}
-
-@mixin border-radius-right($radius:5px) {
-	-webkit-border-top-right-radius: $radius;
-	-webkit-border-bottom-right-radius: $radius;
-	-moz-border-radius-topright: $radius;
-	-moz-border-radius-bottomright: $radius;
-}
-
-@mixin border-radius-left($radius:5px) {
-	-webkit-border-top-left-radius: $radius;
-	-webkit-border-bottom-left-radius: $radius;
-	-moz-border-radius-topleft: $radius;
-	-moz-border-radius-bottomleft: $radius;
-}
-
-@mixin danger-progress-background{
-  background-image: -moz-linear-gradient(top, #EE5F5B, #C43C35);
-  background-image: -ms-linear-gradient(top, #EE5F5B, #C43C35);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#EE5F5B), to(#C43C35));
-  background-image: -webkit-linear-gradient(top, #EE5F5B, #C43C35);
-  background-image: -o-linear-gradient(top, #EE5F5B, #C43C35);
-  background-image: linear-gradient(top, #EE5F5B, #C43C35);
-}
-
-@mixin neutral-progress-background{
-  background-image: -moz-linear-gradient(top, #08C, #04C);
-  background-image: -ms-linear-gradient(top, #08C, #04C);
-  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08C), to(#04C));
-  background-image: -webkit-linear-gradient(top, #08C, #04C);
-  background-image: -o-linear-gradient(top, #08C, #04C);
-  background-image: linear-gradient(top, #08C, #04C);
-}
-
-@mixin standard-border {
-  @include border-radius;
-  @include border;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/navigation.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/navigation.scss b/blur-admin/app/assets/stylesheets/navigation.scss
deleted file mode 100644
index ced80ef..0000000
--- a/blur-admin/app/assets/stylesheets/navigation.scss
+++ /dev/null
@@ -1,86 +0,0 @@
-$nav-height: 40px;
-
-#root{
-  .navbar{
-    // A complete hack for FF width bug
-    padding-right: 3px;
-    background: url("gradient.png") repeat-x scroll 0 -58px;
-    .brand{
-      padding-bottom: 0px;
-    }
-  }
-	.navbar-inner {
-    // Also part of the browser hack for FF
-		background: transparent;
-		@include border-radius(0);
-		height: $nav-height;
-		> ul li {
-			&.active > a{
-				color: $base-theme-color;
-				background-color: transparent;
-			}
-		}
-    #zookeeper_select > select{
-      margin: 6px;
-    }
-	}
-  #bd {
-    @include clearfix;
-    position:relative;
-  }
-}
-
-#flash {
-  width: 600px;
-  text-align: center;
-  font-size: 1.2em;
-  font-weight: bold;
-  bottom: 0px;
-  right: 0px;
-  position: fixed;
-  z-index: 100;
-  div{
-    position: absolute;
-    @include transition(right 3s);
-    right: -600px;
-    bottom: 0px;
-    cursor: pointer;
-    max-width: 600px;
-    min-width: 300px;
-    $alert-height: 44px;
-    height: $alert-height;
-    line-height: $alert-height;
-    margin: auto;
-    padding: 0px 14px 0px 14px;
-    &:not(:first-child){
-      @include border-radius(0px);
-    }
-    @include border-radius-bottom(0px);
-    @include border-radius-right(0px);
-  }
-}
-
-#ft {
-  bottom: 0;
-  position: fixed;
-  width: 100%;
-  $footer-color: lighten($base-theme-color, 20%);
-  background-color: $footer-color;
-  text-align: center;
-  height: $footer-height;
-  line-height: $footer-height - 1;
-  border-top: 1px solid darken($footer-color, 10%);
-  @include box-shadow(0 1px 0 lighten($footer-color, 10%) inset);
-  text-align: right;
-  z-index: 99;
-  
-  #company-info {
-    float: right;
-    margin-top: 15px;
-  }
-  p{
-    color: darken($footer-color, 40%);
-    text-decoration: none;
-    margin-right: 50px;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/search.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/search.scss b/blur-admin/app/assets/stylesheets/search.scss
deleted file mode 100644
index 36fd4d4..0000000
--- a/blur-admin/app/assets/stylesheets/search.scss
+++ /dev/null
@@ -1,221 +0,0 @@
-@mixin search-tab {
-  width: 9%;
-  text-align: left;
-  .header{
-    text-align: center;
-    cursor: pointer;
-  }
-  position: relative;
-  border-right: 1px solid #ccc;
-  .body{
-    min-width: 200px;
-	  top: 35px;
-	  right: 0px;
-	  background-color: #F4F4F4;
-	  position: absolute;
-		@include border-radius-bottom;
-	  border: solid 1px #ccc;
-	  border-top: none;
-  }
-  img{ 
-    vertical-align: middle;
-    padding: 0px 0px 4px 4px;
-  }
-}
-
-@mixin title-style{
-  text-align: center;
-  font-weight: bold;
-  padding-bottom: 10px;
-}
-#search_page_wrapper {
-  text-align: center;
-  .section{
-    border-top: 1px solid #ccc;   
-    padding: 10px 0 10px 0;     
-  }
-
-  #filter_section {
-    width: 100%;
-    z-index: 999;
-    @include standard-font;
-    position: absolute;
-    top: -20px;
-    left: 0;
-    padding: 10px 0px 0px 10px;
-    @include box-sizing(border-box);
-		@include gradient-vertical(#fff, #F4F4F4);
-    border-bottom: 1px solid #ccc;
-    #filters_wrap{
-      & > div{ display:inline-block; }
-      .partial-section, .body { padding: 0.5em; }
-
-      #standard{
-        position: relative;
-        width: 69%;
-        .search_field{
-          display: inline-block;
-          width: 89%;
-          #query_string{
-            width: 100%;
-            @include border-radius-right(0);
-            padding-right: 0px;
-          }
-        }
-        .btn{
-          width: 10%;
-          @include border-radius-left(0);
-          margin-bottom: 9px;
-          &:disabled{
-            height: 30px;
-          }
-        }
-        img{
-          position: absolute;
-          padding: 6px 4px;
-        }
-      }
-
-      #blur-table{
-        width: 9%;
-        margin: 0 5px 0 15px;
-        #blur_table{
-          width: 100%;
-        }
-      }
-
-      #advanced{
-        .arrow_up { display: none; }
-        @include search-tab;
-        border-left: 1px solid #ccc;
-        .body{
-          #blur_table{ width: 100%; }
-          td:first-child{ font-weight: bold; }
-        }
-        input{ width: 50px; }
-        #filter_columns{
-          max-height: 250px;
-          overflow: auto;
-          align: right;
-        }
-        #radio_buttons{
-          margin-top: -15px;
-          margin-left: 25px;
-          margin-bottom: -15px;
-        }
-        #radio_headers{
-          margin-top: -20px;
-        }
-        .filter_text{
-          width: 100%;
-        }
-      }
-
-      #loading-spinner { vertical-align: middle; }
-
-      #saved{
-        .arrow_up { display: none; }
-        text-align: center;
-        @include search-tab;
-        .action-icon{ cursor: pointer; }
-        .saved-title{ @include title-style; }
-      }
-    }
-  }
-
-    
-    .filter {
-      font-weight: bold;
-      td{
-        padding: 3px;
-      }
-      .filtered-title{
-        @include title-style;
-      }
-    }
-
-    .filter#buttons { 
-      text-align: center; 
-      button{font-size:85%;} 
-      display: inline-block;
-      width: 100%;
-      padding-top: 10px;
-    }
-    
-    #search_form{ margin: 0px; }
-
-  #results_wrapper{
-    margin-top:35px;
-    max-width: 100%;
-    overflow: auto;
-    border: 1px solid #999;
-    display: inline-block;
-    &.noResults{
-      border: none;
-    }
-
-    #results_container{
-      position: relative;
-      .no-results{
-        padding-top: 1em;
-        font-weight: bold;
-        line-height: 1.5em;
-        font-size: 1.5em;
-      }
-      #results_info{
-        background-color: white;
-        text-align: left;
-      }
-
-      #results_section{
-        display: inline-block;
-        background-color : white;
-        width: auto;
-      }
-    }
-    table {
-      border-top: solid 1px #ccc;
-      margin: 0px;
-      empty-cells: show;
-      td{ min-width: 100px; }
-      thead {
-        background-color: $table-hd-color;
-        th {
-          background: transparent;
-          text-align: center;
-          color: $table-hd-text;
-          font-weight: bold;
-          font-size: 120%;
-        }
-        tr.columnsets th {
-          font-weight: normal;
-          }
-      }
-      tbody {
-        td.even {
-          background-color: $table-hd-color
-        }
-        tr.first{
-          @include border-top;
-          vertical-align: top;
-        }
-      }
-    }
-  }
-
-  #saved, #store , #advanced { & .body { display: none; } }
-
-  .header {
-    padding: 5px 0;
-    img{
-      vertical-align: middle;
-    }
-		label { cursor: pointer; }
-  }
-
-  // Navigation Tab label div
-  .tab { background-color:#EEE; }
-  .search-name{float:left;}
-  .search-buttons{float:right;}
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/user_session.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/user_session.scss b/blur-admin/app/assets/stylesheets/user_session.scss
deleted file mode 100644
index 4c82a3c..0000000
--- a/blur-admin/app/assets/stylesheets/user_session.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-#login_wrapper{
-  @include standard-font;
-  padding-top: 150px;
-	width: 400px;
-	margin-left: auto;
-	margin-right: auto;
-	text-align: center;
-}
-.help-inline{
-  display: none;
-}
-
-p{
-  padding-top: 5px;
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/users.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/users.scss b/blur-admin/app/assets/stylesheets/users.scss
deleted file mode 100644
index 252ef73..0000000
--- a/blur-admin/app/assets/stylesheets/users.scss
+++ /dev/null
@@ -1,156 +0,0 @@
-@mixin info($color) {
-  @include border;
-  @include border-radius;
-  background-color: $color;
-}
-
-@mixin pref-box{
-  @include info(white);
-  margin:0px 0px 0px 0px;
-}
-
-ul{ margin: 5px; }
-
-#admin_wrapper, #new_user_wrapper, #edit_user_wrapper, #show_user_wrapper{
-  @include standard-font;
-
-  $select-color: #FAD08A;
-
-  text-align: center;
-  margin-top: 1em;
-  label {
-      font-size:20px;
-      margin: 5px 0px 5px 0px;
-      color:$blue-dashboard-color;
-  }
-  span{
-      font-weight:normal;
-  }
-  #roles_wrapper{
-    li{
-      list-style-type:none;
-      display:block;
-    }
-  }
-  .info-contain{
-    @include clearfix;
-    min-width: 580px;
-  }
-
-  //user info box
-  #user-info{
-    @include info(#F9F9F9);
-    min-width: 175px;
-    margin-top:2px;
-    p{
-      margin: 5px;
-    }
-  }
-
-  #pref-bin{
-    @include clearfix;
-  }
-
-  #pref-trash, #pref-key{
-    @include pref-box;
-    margin-top:5px;
-  }
-
-  #pref-key {
-    padding: 5px;
-    text-align: center;
-    #orange_color, #blue_color {
-      height: 10px;
-      width: 10px;
-      display: inline-block;
-    }
-    #orange_color { @include info($select-color); }
-    #blue_color { @include info($table-hd-color); }
-  }
-
-  #actual-trash{
-    div:not(#trash){
-      display:none;
-    }
-  }
-
-  #pref-col-info{
-    padding:5px;
-    @include info(#F9F9F9);
-    min-width: 300px;
-  }
-
-  #zookeeper-pref{
-    @include pref-box;
-    @include info(#F9F9F9);
-    display:inline-block;
-    padding:5px;
-    margin-left:10px;
-    width:300px;
-    #zookeeper_submit{
-      width:75px;
-    }
-  }
-
-  #pref-col{ @include pref-box; }
-  #pref-title{
-    h3{ text-align: center; }
-    .loading-spinner { margin-left: 20px; float: left; }
-  }
-  .hidden-spinner {
-    .loading-spinner { display: none !important; }
-    h3 { margin-left: 36px; } }
-
-  #opt-col{
-    @include info(white);
-    @include pref-box;
-    float: right;
-  }
-
-  .fam{
-    padding:5px;
-    margin:5px;
-    cursor:pointer;
-    padding: 2px;
-    margin:2px;
-    @include info($table-hd-color);
-  }
-
-  .section-label{ text-align:center; }
-  .my-select{ background-color:$select-color; }
-  #no-saved, #trash{
-    text-align:center;
-    font-weight:200;
-  }
-
-  .sel-fam{
-    cursor:grab;
-    cursor:grab;
-    cursor:-moz-grab;
-    cursor:-webkit-grab;
-
-    @include info($select-color);
-    padding:2px;
-    margin:2px;
-  }
-  .inputs-list{
-    list-style-type: none;
-    li{
-      padding: 5px 0 5px 0;
-      input[type=checkbox]{
-        display: inline-block;
-      }
-    }
-  }
-  .table-filter{
-    input[type=submit]{
-      margin-bottom: 9px;
-    }
-  }
-  .clarification{
-    margin-bottom: 25px;
-  }
-  .filter-header{
-    margin-top: 45px;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/assets/stylesheets/zookeeper.scss
----------------------------------------------------------------------
diff --git a/blur-admin/app/assets/stylesheets/zookeeper.scss b/blur-admin/app/assets/stylesheets/zookeeper.scss
deleted file mode 100644
index 04509e7..0000000
--- a/blur-admin/app/assets/stylesheets/zookeeper.scss
+++ /dev/null
@@ -1,126 +0,0 @@
-$opacity-adjust: 0;
-#zookeeper_wrapper {
-  i { cursor: pointer; }
-  $header-padding: 20px;
-  margin-top: 2em;
-  #blur, #zookeeper{ margin-bottom: 2em;}
-  #zookeeper {
-    @include border-radius();
-    opacity: .9;
-    height: 60px;
-    width: 500px;
-    margin-left:auto;
-    margin-right:auto;   
-    h2 {
-      font-size: 20px;
-      padding: 10px 10px 0px;
-      color: white;
-      line-height: 40px;
-      @include box-sizing(border-box);
-      height: 100%;
-      position: relative;
-      top: -10px;
-      
-      .nodes {
-        position: relative;
-        bottom: 20px;
-        font-size: 12px;
-        opacity: .8;
-        text-overflow: ellipsis;
-        white-space: nowrap;
-        overflow: hidden;
-
-        span{
-          cursor: pointer;
-        }
-      }
-      
-      i {
-        position: absolute;
-        top: 15px;
-        right: 5px;
-      }
-    }
-
-  }
-  #blur {
-    #controllers, #clusters{ padding: 5px; @include box-sizing(border-box); min-width: 550; border-top: 1px solid #CCCCCC;}
-    thead{
-      background-color: whitesmoke;
-    }
-
-    table tbody tr{
-      &.no_children{
-        display: none;
-      }
-      &.error{
-        &:hover{
-          td{
-            background-color: #EBCCCC;
-          }
-        }
-        td{
-          background-color: #F2DEDE;
-        }
-      }
-
-      &.warning{
-        &:hover{
-          td{
-            background-color: #FAF2CC;
-          }
-        }
-        td{
-          background-color: #FCF8E3;
-        }
-      }  
-      
-      td{
-
-        a {
-          text-decoration: none;
-          cursor: pointer;
-        }
-        
-        .noColor{
-          background-color: transparent;
-          color:black;
-        }
-        color{
-          //color: rgba(125, 199, 125, 1);
-          font-weight: bold;
-        }
-      }
-      
-      td:last-child { text-align: center; width: 34px; }
-    }
-    ul{ list-style-type: none; }
-    .blur_container{ margin-bottom: 2em }
-  }
-  .status{ width:75px; @include zoo-status;}
-
-  h3 { margin-top: 0.5em; border-bottom: $twitter-border;}
-  
-  .noController{
-    position: relative;
-    top: 40px;
-    font-size: 20px;
-    color: #93A7AC;
-  }
-  .subHeaders{
-    display: inline-block;
-    font-size: 24px;
-    font-weight: bold;
-    color: #93A7AC;
-    background: none repeat scroll 0 0 #FFFFFF;
-    position: relative;
-    top: -16px;
-    left: 10px;    
-  }
-  
-  .row{
-    margin-left:auto;
-    margin-right:auto;
-    width: 1200px;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/admin_settings_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/admin_settings_controller.rb b/blur-admin/app/controllers/admin_settings_controller.rb
deleted file mode 100644
index 19040d3..0000000
--- a/blur-admin/app/controllers/admin_settings_controller.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class AdminSettingsController < ApplicationController
-  respond_to :html
-
-  def update
-    search_filter = AdminSetting.find_or_create_by_setting(params[:setting])
-    search_filter.value = params[:value]
-    search_filter.save
-    respond_with do |format|
-      format.html { render :nothing => true }
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/application_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/application_controller.rb b/blur-admin/app/controllers/application_controller.rb
deleted file mode 100644
index 89f0464..0000000
--- a/blur-admin/app/controllers/application_controller.rb
+++ /dev/null
@@ -1,117 +0,0 @@
-class ApplicationController < ActionController::Base
-  protect_from_forgery
-
-  before_filter :lock_down_api
-
-  respond_to :html, :only => :help
-
-  require 'thrift/blur'
-  require 'blur_thrift_client'
-
-  helper_method :current_user
-
-  enable_authorization do |exception|
-    if current_user
-      if can? :index, :zookeepers
-        redirect_to root_url, :alert => "Unauthorized"
-      else
-        redirect_to logout_url, :alert => "Unauthorized"
-      end
-    else
-      redirect_to login_path, :alert => "Please login"
-    end
-  end
-
-  def current_user
-    @current_user ||= current_user_session && current_user_session.user
-  end
-
-  def help
-    @tab = params['tab']
-    respond_to do |format|
-      format.any  { render :partial => 'layouts/help_menu' }
-    end
-  end
-
-  # Populates the @current_zookeeper instance variable
-  def current_zookeeper
-    # Find the zookeeper with the given or the stored session id
-    @current_zookeeper ||= Zookeeper.find_by_id(params[:zookeeper_id] || session[:current_zookeeper_id])
-    if @current_zookeeper.nil?
-      zookeeper_error
-    else
-      # Set the zookeeper
-      set_zookeeper @current_zookeeper.id
-    end
-    @current_zookeeper
-  end
-
-  def set_zookeeper(id)
-    # Convert all inputs to an int
-    id = id.to_i
-    # Avoids a DB hit if the id is unchanged
-    session[:current_zookeeper_id] = id if session[:current_zookeeper_id] != id
-  end
-
-  private
-
-  # Populates the session id with your preference zookeeper id
-  def set_zookeeper_with_preference
-    user_zk_pref = current_user.zookeeper_preference
-
-    if user_zk_pref.name.to_i > 0 # If your preference is not the default
-      # If your preferred zookeeper doesnt exist
-      if Zookeeper.find_by_id(user_zk_pref.value).nil?
-        flash[:error] = "Your preferred Zookeeper no longer exists, your preference has been reset!"
-        # Reset their preference to the default
-        user_zk_pref.name = 0
-        user_zk_pref.save
-      else
-        set_zookeeper user_zk_pref.value
-      end
-    end
-  end
-
-  # Populates the @zookeepers instance variable for option select
-  def zookeepers
-    @zookeepers ||= Zookeeper.order 'name'
-  end
-
-  def current_user_session
-    @current_user_session ||= UserSession.find
-  end
-
-  ### Application Wide Error Handling ###
-  #Locks the actions to their defined "formats"
-  def lock_down_api
-    action = params[:action]
-    # When the format is blank it is an http request
-    format = (params[:format] || :html).to_sym
-    # Respond to specific format and hash of actions
-    accepted_actions = mimes_for_respond_to[format]
-    error = true
-
-    # If the action doesnt respond to that format
-    if !accepted_actions.nil?
-      if accepted_actions[:except]
-        error = accepted_actions[:except].include?(action)
-      elsif accepted_actions[:only]
-        error = !accepted_actions[:only].include?(action)
-      else
-        error = false
-      end
-    end
-
-    raise "Unaccepted Format for this Action!" if error
-  end
-
-  # Error message for incorrect zookeeper find
-  def zookeeper_error
-    if request.xhr?
-      render :status => :conflict, :text => "No Current Zookeeper"
-    else
-      flash[:error] = "A Zookeeper with that id does not exist!"
-      redirect_to root_path
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/audits_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/audits_controller.rb b/blur-admin/app/controllers/audits_controller.rb
deleted file mode 100644
index 4388daa..0000000
--- a/blur-admin/app/controllers/audits_controller.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class AuditsController < ApplicationController
-  respond_to :json, :html
-
-  def index
-    from = params[:from] || 48  # Use the given min time or the default 48 hours
-    to = params[:to] || 0       # Use the given max time or the default (now)
-    @audits = Audit.recent from.to_i, to.to_i
-
-    respond_with(@audits)
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/blur_controllers_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/blur_controllers_controller.rb b/blur-admin/app/controllers/blur_controllers_controller.rb
deleted file mode 100644
index f5a1741..0000000
--- a/blur-admin/app/controllers/blur_controllers_controller.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-class BlurControllersController < ApplicationController
-  load_and_authorize_resource
-  
-  respond_to :json
-
-  def destroy
-    raise "Cannot Remove A Controller that is online!" if @blur_controller.controller_status == 1
-    @blur_controller.destroy
-    Audit.log_event(current_user, "Controller (#{@blur_controller.node_name}) was forgotten",
-                    "controller", "delete", @blur_controller.zookeeper) if @blur_controller.destroyed?
-    respond_with(@blur_controller) do |format|
-      format.json
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/blur_queries_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/blur_queries_controller.rb b/blur-admin/app/controllers/blur_queries_controller.rb
deleted file mode 100644
index dfdb576..0000000
--- a/blur-admin/app/controllers/blur_queries_controller.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-class BlurQueriesController < ApplicationController
-  load_and_authorize_resource :through => :current_zookeeper,
-                              :shallow => true, :except => :refresh
-
-  before_filter :zookeepers, :only => :index
-
-  respond_to :html, :only => [:index, :show, :cancel]
-  respond_to :json, :only => [:refresh, :show]
-
-  def index
-    respond_with(@blur_queries)
-  end
-
-  def refresh
-    lower_range = params[:time_length].to_i.minute.ago
-    query_summaries = current_zookeeper.refresh_queries(lower_range).collect do |query| 
-      summary = query.summary(current_user)
-      summary[:action] = ''
-      summary
-    end
-
-    respond_with(query_summaries) do |format|
-      # Root node aaData is for the datatable library
-      format.json { render :json => { :aaData => query_summaries } }
-    end
-  end
-
-  def show
-    respond_with(@blur_query) do |format|
-      format.html { render :partial => 'show' }
-      format.json { render :json => @blur_query.summary(current_user) }
-    end
-  end
-
-  def cancel
-    @blur_query.cancel
-    Audit.log_event(current_user, "BlurQuery with UUID #{@blur_query.uuid}) was canceled",
-                    "blur_query", "update", current_zookeeper)
-
-    respond_with(@blur_query) do |format|
-      format.html { render :partial => 'blur_query' }
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/blur_shards_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/blur_shards_controller.rb b/blur-admin/app/controllers/blur_shards_controller.rb
deleted file mode 100644
index 9a37b5c..0000000
--- a/blur-admin/app/controllers/blur_shards_controller.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class BlurShardsController < ApplicationController
-  load_and_authorize_resource :cluster
-  load_and_authorize_resource :through => :cluster, :shallow => true
-
-  respond_to :json
-
-  def index
-    respond_with(@blur_shards) do |format|
-      format.json { render :json => @blur_shards, :except => :cluster_id }
-    end
-  end
-
-  def destroy
-    raise "Cannot Remove A Shard that is online!" if @blur_shard.shard_status == 1
-    @blur_shard.destroy
-    Audit.log_event(current_user, "Shard (#{@blur_shard.node_name}) was forgotten",
-                    "shard", "delete", @blur_shard.zookeeper) if @blur_shard.destroyed?
-
-    respond_with(@blur_shard)
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/blur_tables_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/blur_tables_controller.rb b/blur-admin/app/controllers/blur_tables_controller.rb
deleted file mode 100644
index 15688ce..0000000
--- a/blur-admin/app/controllers/blur_tables_controller.rb
+++ /dev/null
@@ -1,94 +0,0 @@
-class BlurTablesController < ApplicationController
-  load_and_authorize_resource :shallow => true, :only => [:comment, :terms, :hosts, :schema]
-
-  before_filter :zookeepers, :only => :index
-
-  respond_to :html, :only => [:index]
-  respond_to :json
-
-  def index
-    @clusters = current_zookeeper.clusters_with_query_status(current_user)
-    respond_with(@clusters) do |format|
-      format.json { render :json => @clusters, :methods => [:blur_tables], :blur_tables => true }
-    end
-  end
-
-  def enable
-    table_update_action do |table|
-      table.table_status = STATUS[:enabling]
-      table.enable current_zookeeper.blur_urls
-      table.save
-      Audit.log_event(current_user, "Table, #{table.table_name}, was enabled",
-                      "blur_table", "update", current_zookeeper)
-    end
-  end
-
-  def disable
-    table_update_action do |table|
-      table.table_status = STATUS[:disabling]
-      table.disable current_zookeeper.blur_urls
-      table.save
-      Audit.log_event(current_user, "Table, #{table.table_name}, was disabled",
-                      "blur_table", "update", current_zookeeper)
-    end
-  end
-
-  def destroy
-    destroy_index = params[:delete_index] == 'true' # Destroy underlying index boolean
-    tables = params[:tables]                        # Tables being destroyed
-    blur_urls = current_zookeeper.blur_urls         # Cached blur_urls
-
-    BlurTable.find(tables).each do |table|
-      table.blur_destroy destroy_index, blur_urls
-      index_message = "and underlying index " if destroy_index
-      Audit.log_event(current_user, "Table, #{table.table_name}, #{index_message}was deleted",
-                      "blur_table", "update", current_zookeeper)
-    end
-    BlurTable.destroy tables
-
-    respond_to do |format|
-      format.json { render :json => {} }
-    end
-  end
-
-  def terms
-    terms = @blur_table.terms current_zookeeper.blur_urls, params[:family], params[:column], params[:startwith], params[:size].to_i
-
-    respond_with(terms)
-  end
-
-  def hosts
-    respond_with(@blur_table) do |format|
-      format.json { render :json => @blur_table.hosts }
-    end
-  end
-
-  def schema
-    respond_with(@blur_table) do |format|
-      format.json { render :json => @blur_table.schema }
-    end
-  end
-
-  def comment
-    raise "No comment provided!" if params[:comment].nil?
-    @blur_table.comments = params[:comment]
-    @blur_table.save
-
-    respond_with(@table)
-  end
-
-  private
-
-  STATUS = {:enabling => 5, :active => 4, :disabling => 3, :disabled => 2, :deleting => 1, :deleted => 0}
-  STATUS_SELECTOR = {:active => [4, 3], :disabled => [2, 5, 1], :deleted => [0]}
-
-  def table_update_action
-    BlurTable.find(params[:tables]).each do |table|
-      yield table
-    end
-
-    respond_to do |format|
-      format.json { render :json => {} }
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/clusters_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/clusters_controller.rb b/blur-admin/app/controllers/clusters_controller.rb
deleted file mode 100644
index 9659eb7..0000000
--- a/blur-admin/app/controllers/clusters_controller.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class ClustersController < ApplicationController
-  load_and_authorize_resource
-
-  respond_to :json
-
-  def destroy
-    raise "Cannot Remove A Cluster that is online!" if @cluster.cluster_status == 1
-    @cluster.destroy
-    Audit.log_event(current_user, "Cluster (#{@cluster.name}) was forgotten",
-                    "cluster", "delete", @cluster.zookeeper) if @cluster.destroyed?
-    respond_with(@cluster)
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/errors_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/errors_controller.rb b/blur-admin/app/controllers/errors_controller.rb
deleted file mode 100644
index 9b93617..0000000
--- a/blur-admin/app/controllers/errors_controller.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-class ErrorsController < ApplicationController
-  respond_to :json, :html
-
-  def error_404
-    render :error_404, :status => :not_found
-  end
-
-  def error_500
-    @error = env["action_dispatch.exception"]
-    @status_code = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code
-    render :error_500, :status => 500
-  end
-
-  def error_422
-    render :error_422, :status => 422
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/hdfs_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/hdfs_controller.rb b/blur-admin/app/controllers/hdfs_controller.rb
deleted file mode 100644
index b592a5f..0000000
--- a/blur-admin/app/controllers/hdfs_controller.rb
+++ /dev/null
@@ -1,162 +0,0 @@
-class HdfsController < ApplicationController
-  require 'hdfs_thrift_client'
-  load_and_authorize_resource :shallow => true
-
-  HTML_REPONSES = [:info, :folder_info, :expand, :file_info, :upload_form, :upload]
-  respond_to :html, :only => (HTML_REPONSES + [:index])
-  respond_to :json, :except => HTML_REPONSES
-
-  include ActionView::Helpers::NumberHelper
-
-  def index
-    respond_with do |format|
-      format.json { render :json => @hdfs, :methods => [:most_recent_stats, :recent_stats] }
-    end
-  end
-
-  def info
-    @hdfs_stat = @hdfs.hdfs_stats.last
-    respond_with(@hdfs_stat) do |format|
-      format.html do
-        if @hdfs_stat
-          render :partial => 'info'
-        else
-          render :text => "<div>Stats for hdfs ##{params[:id]} were not found, is the blur tools agent running?</div>"
-        end
-      end
-    end
-  end
-
-  def folder_info
-    client = build_client_from_id
-    path = params[:fs_path]
-
-    @stat = client.stat path
-    respond_with(@stat) do |format|
-      format.html{ render :partial => 'folder_info' }
-    end
-  end
-
-  def slow_folder_info
-    client = build_client_from_id
-    path = params[:fs_path]
-    file_stats = client.ls(path, true)
-    file_size = 0
-    stats_hash = {:file_size => 0, :file_count => 0, :folder_count => 0}
-
-    file_stats.each do |stat|
-      file_size += stat.length
-      stats_hash[:file_count] += 1 unless stat.isdir
-      stats_hash[:folder_count] += 1 if stat.isdir
-    end
-    stats_hash[:file_size] = number_to_human_size file_size
-
-    respond_with(stats_hash)
-  end
-
-  def expand
-    @hdfs_id = params[:id]
-    @path = params[:fs_path] || '/'
-    @path += '/' unless @path.last=='/'
-    client = build_client_from_id
-    fileStats = client.ls(@path)
-
-    @children = fileStats.collect do |stat|
-      file_ending = stat.path.split('/').last
-      {:name=> file_ending, :is_dir=>stat.isdir}
-    end
-    @children.sort_by! {|c| [c[:is_dir] ? 1:0, c[:name].downcase]}
-
-    respond_with do |format|
-      format.html { render :partial => 'expand' }
-    end
-  end
-
-  def mkdir
-    client = build_client_from_id
-    path = "#{params[:fs_path]}/#{params[:folder]}/"
-    path.gsub!(/\/\//, "/")
-    client.mkdirs(path)
-    Audit.log_event(current_user, "A folder, #{params[:folder]}, was created",
-      "hdfs", "create", @hdfs)
-
-    respond_with do |format|
-      format.json { render :json => {} }
-    end
-  end
-
-  def file_info
-    client = build_client_from_id
-    @stat = client.stat params[:fs_path]
-    respond_with do |format|
-      format.html { render :partial => 'file_info' }
-    end
-  end
-
-  def move_file
-    file_name = params[:from].strip.split("/").last
-    client = build_client_from_id
-    client.rename(params[:from], params[:to].gsub(/(\/$)/, '') + '/' + file_name)
-    Audit.log_event(current_user, "File/Folder, #{file_name}, was moved or renamed to #{params[:to]}",
-      "hdfs", "update", @hdfs)
-
-    respond_with do |format|
-      format.json { render :json => {} }
-    end
-  end
-
-  def delete_file
-    client = build_client_from_id
-    path = params[:path]
-    client.delete path, true
-    file_name = params[:path].strip.split("/").last
-    Audit.log_event(current_user, "File/Folder, #{file_name}, was deleted",
-      "hdfs", "delete", @hdfs)
-
-    respond_with do |format|
-      format.json { render :json => {} }
-    end
-  end
-
-  def upload_form
-    respond_with do |format|
-      format.html { render :partial => 'upload_form' }
-    end
-  end
-
-  def upload
-    begin
-      if !(params[:upload].nil? or params[:path].nil? or params[:id].nil?)
-        f = params[:upload]
-        @path = params[:path].gsub(/(\/$)/, '')
-        if f.tempfile.size > 26214400
-          @error = 'Upload is Too Large.  Files must be less than 25Mb.'
-        else
-          client = build_client_from_id
-          client.put(f.tempfile.path, @path + '/' + f.original_filename)
-          Audit.log_event(current_user, "File, #{f.original_filename}, was uploaded",
-            "hdfs", "create", @hdfs)
-        end
-      else
-        @error = 'Problem with File Upload'
-      end
-    rescue Exception => e
-      @error = e.to_s
-    end
-    respond_with do |format|
-      format.html { render :partial => 'upload' }
-    end
-  end
-
-  def file_tree
-    client = build_client_from_id
-    file_structure = client.folder_tree params[:fs_path], 4
-    respond_with(file_structure)
-  end
-
-  private
-  def build_client_from_id
-    HdfsThriftClient.client("#{@hdfs.host}:#{@hdfs.port}")
-  end
-end
-

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/hdfs_metrics_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/hdfs_metrics_controller.rb b/blur-admin/app/controllers/hdfs_metrics_controller.rb
deleted file mode 100644
index c6d56dc..0000000
--- a/blur-admin/app/controllers/hdfs_metrics_controller.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-class HdfsMetricsController < ApplicationController
-  respond_to :html, :only => [:index]
-  respond_to :json, :only => [:stats]
-
-  def index
-    @hdfs_index = Hdfs.all
-    respond_with(@hdfs_index)
-  end
-
-  def stats
-    @results = hdfs_stat_select [:present_capacity, :dfs_used_real, :live_nodes, :dead_nodes, :under_replicated, :corrupt_blocks, :missing_blocks]
-    respond_with(@results) do |format|
-      format.json { render :json => @results, :methods => [:capacity, :used], :except => [:present_capacity, :dfs_used] }
-    end
-  end
-
-  private
-  def hdfs_stat_select(properties)
-    hdfs = Hdfs.find params[:id]
-    properties = [:id, :created_at] + properties
-
-    if params[:stat_id]
-      where_clause = "id > #{params[:stat_id]}"
-    else
-      where_clause = "created_at >= '#{params[:stat_min].to_i.minute.ago}'"
-      where_clause += " and created_at < '#{params[:stat_max].to_i.minute.ago}'" if params[:stat_max]
-    end
-
-    stat_number = hdfs.hdfs_stats.where(where_clause).select("count(*) as count")
-    if stat_number.count >= 700
-      remove_number = (stat_number.count / 700).floor
-      where_clause += " and hdfs_stats.id % #{remove_number} = 0"
-    end
-
-    return hdfs.hdfs_stats.where(where_clause).select(properties)
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/preferences_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/preferences_controller.rb b/blur-admin/app/controllers/preferences_controller.rb
deleted file mode 100644
index 4b6668d..0000000
--- a/blur-admin/app/controllers/preferences_controller.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class PreferencesController < ApplicationController
-  load_and_authorize_resource
-
-  respond_to :json
-
-  def update
-    @preference = Preference.find_by_pref_type_and_user_id params[:pref_type], params[:user_id]
-    updated_attr = {:value => params['value']}
-    
-    # Zookeeper pref uses the name as a data store
-    if params[:pref_type] == 'zookeeper'
-      updated_attr[:name] = params['name']
-      puts params['value']
-      set_zookeeper params['value']
-    end
-    @preference.try(:update_attributes, updated_attr)
-    respond_with(@preference) do |format|
-      format.json { render :json => {} }
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/searches_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/searches_controller.rb b/blur-admin/app/controllers/searches_controller.rb
deleted file mode 100644
index 87e3c00..0000000
--- a/blur-admin/app/controllers/searches_controller.rb
+++ /dev/null
@@ -1,205 +0,0 @@
-class SearchesController < ApplicationController
-  load_and_authorize_resource :only => [:show, :destroy]
-
-  before_filter :zookeepers, :only => :index
-  before_filter :clean_column_data, :only => [:save, :update]
-
-  JSON_RESPONSES = [:filters, :show, :update]
-  respond_to :html, :except => JSON_RESPONSES
-  respond_to :json, :only => JSON_RESPONSES
-
-  #Show action that sets instance variables used to build the filter column
-  def index
-    # the .all call executes the SQL fetch, otherwise there are many more SQL fetches
-    # required because of the lazy loading (in this case where a few more variables
-    # depend on the result)
-    @search_filter = AdminSetting.search_filter
-    @blur_tables = current_zookeeper.blur_tables.where('table_status = 4').order("table_name").includes(:cluster).all
-    @blur_table = BlurTable.find_by_id(params[:table_id])
-    if @blur_table.nil?
-      @blur_table = @blur_tables[0]
-      @query = ''
-    else
-      @query = params[:query].nil? ? '' : params[:query]
-    end
-    @columns = @blur_table.schema &preference_sort(current_user.column_preference.value || []) if @blur_table
-    @searches = current_user.searches.order("name")
-    @filter_table_collection = {}
-    @blur_tables.each do |table|
-        @filter_table_collection[table.cluster.name] ||= []
-        @filter_table_collection[table.cluster.name] << [table.table_name, table.id]
-    end
-    respond_with
-  end
-
-  #Filter action to help build the tree for column families
-  def filters
-    blur_table = BlurTable.find params[:blur_table]
-    preference = current_user.column_preference
-    columns = blur_table ? (blur_table.schema &preference_sort(preference.value || [])) : []
-    selected_count = 0
-    first_selected = preference.value.nil?
-    filter_children = columns.collect do |family|
-      if preference.value && !preference.value.index(family['name']).nil?
-        selected = true
-        selected_count += 1
-      end
-      col_fam = {:title => family['name'], :key => "family_-sep-_#{family['name']}", :addClass => 'check_filter', :select => (first_selected || selected)}
-      col_fam[:children] = family['columns'].collect do |column|
-        {:title => column['name'], :key => "column_-sep-_#{family['name']}_-sep-_#{column['name']}", :addClass=>'check_filter', :select => (first_selected || selected)}
-      end
-      first_selected = false
-      col_fam
-    end
-    all_selected = selected_count == filter_children.length
-    filter_list = { :title => 'All Families', :key => "neighborhood", :addClass => 'check_filter', :select => all_selected, :children => filter_children}
-    respond_with(filter_list)
-  end
-
-  #Create action is a large action that handles all of the filter data
-  #and either saves the data or performs a search
-  def create
-    search_filter = AdminSetting.search_filter
-    blur_table = BlurTable.find params[:blur_table]
-    if blur_table.table_name.match(search_filter.value).nil? && params[:query_string].match(/:\*$|^\*$/)
-      raise "The table #{blur_table.table_name} is Star Protected, Contact your admin!"
-    end
-
-    params[:column_data].delete( "neighborhood") if params[:column_data]
-    search = Search.new(  :super_query      => params[:search] == '0',
-                          :record_only      => params[:search] == '1' && params[:return] == '1',
-                          :fetch            => params[:result_count].to_i,
-                          :offset           => params[:offset].to_i,
-                          :user_id          => current_user.id,
-                          :query            => params[:query_string],
-                          :blur_table_id    => params[:blur_table],
-                          :pre_filter       => params[:pre_filter],
-                          :post_filter      => params[:post_filter]
-                         )
-    search.column_object = params[:column_data]
-
-    blur_results = search.fetch_results(blur_table.table_name, current_zookeeper.blur_urls)
-
-    # parse up the response object and reformat it to be @results.  @results holds the data
-    # that will be passed to the view. @results is an array of results. Each result is a series
-    # of nested hashes/arrays:
-    #   result = {:id, :max_record_count, :column_families => column_families}
-    #   column_families = {:column_family_name => [record]}
-    #   record = {:recordId => recordId, :column_name => value}
-
-    @result_count = blur_results.totalResults
-    @result_time = -1 #blur_results.realTime
-    @results = []
-    blur_results.results.each do |blur_result_container|
-
-      # drill down through the result object cruft to get the real result
-      if !search.record_only
-        blur_result = blur_result_container.fetchResult.rowResult.row
-        records = blur_result.records
-        id = blur_result.id
-      else
-        blur_result = blur_result_container.fetchResult.recordResult
-        records = [blur_result.record]
-        id = blur_result.rowid
-      end
-
-      # continue to next result if there is no returned data
-      next if records.empty?
-
-      max_record_count = records.
-        collect {|record| record.family}.
-        reduce(Hash.new(0)) {|count, family| count[family] += 1; count}.
-        values.max
-
-      result = {:max_record_count => max_record_count, :id => id}
-
-      records.each do |blur_record|
-        column_family = blur_record.family
-        unless column_family.nil? # to compensate for a bug in blur that returns empty records if a column family is not selected
-          record = {'recordId' => blur_record.recordId}
-          blur_record.columns.each do |blur_column|
-            record[blur_column.name] = blur_column.value
-          end
-          result[column_family] = [] unless result[column_family]
-          result[column_family] << record
-        end
-      end
-      @results << result
-    end
-    pref_sort = preference_sort(current_user.column_preference.value || [])
-    @schema = Hash[search.schema(blur_table).sort &pref_sort]
-    respond_with do |format|
-      format.html { render 'create', :layout => false }
-    end
-  end
-
-  #save action that loads the state of a saved action and returns a json to be used to populate the form
-  def show
-    respond_with(@search) do |format|
-      format.json { render :json => @search, :methods => :column_object }
-    end
-  end
-
-  #Delete action used for deleting a saved search from a user's saved searches
-  def destroy
-    @search.destroy
-    @searches = current_user.searches.reverse
-    respond_with(@searches) do |format|
-      format.html { render :partial => "saved" }
-    end
-  end
-
-  def save
-    search = Search.new(:name             => params[:save_name],
-                        :super_query      => params[:search] == '0',
-                        :record_only      => params[:search] == '1' && params[:return] == '1',
-                        :fetch            => params[:result_count].to_i,
-                        :offset           => params[:offset].to_i,
-                        :user_id          => current_user.id,
-                        :query            => params[:query_string],
-                        :blur_table_id    => params[:blur_table],
-                        :pre_filter       => params[:pre_filter],
-                        :post_filter      => params[:post_filter])
-    search.column_object = params[:column_data]
-    search.save
-    @searches = current_user.searches.reverse
-
-    respond_with(@searches) do |format|
-      format.html { render :partial =>"saved" }
-    end
-  end
-
-  def update
-    Search.update(params[:id],
-                        :name               => params[:save_name],
-                        :super_query        => params[:search] == '0',
-                        :record_only        => params[:search] == '1' && params[:return] == '1',
-                        :fetch              => params[:result_count].to_i,
-                        :offset             => params[:offset].to_i,
-                        :user_id            => current_user.id,
-                        :query              => params[:query_string],
-                        :column_object      => params[:column_data],
-                        :blur_table_id      => params[:blur_table],
-                        :pre_filter       => params[:pre_filter],
-                        :post_filter      => params[:post_filter])
-    respond_with do |format|
-      format.json { render :json => {} }
-    end
-  end
-  private
-    def preference_sort(preferred_columns)
-      lambda do |a, b|
-        if preferred_columns.include? a[0] and !preferred_columns.include? b[0]
-          -1
-        elsif preferred_columns.include? b[0] and !preferred_columns.include? a[0]
-          1
-        else
-          preferred_columns.index(a[0]) <=> preferred_columns.index(b[0])
-        end
-      end
-    end
-
-    def clean_column_data
-      params[:column_data].delete 'neighborhood'
-    end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/user_sessions_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/user_sessions_controller.rb b/blur-admin/app/controllers/user_sessions_controller.rb
deleted file mode 100644
index fbf8c0c..0000000
--- a/blur-admin/app/controllers/user_sessions_controller.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-class UserSessionsController < ApplicationController
-  respond_to :html
-
-  def new
-    respond_with(@user_session = UserSession.new)
-  end
-
-  def create
-    @user_session = UserSession.new params[:user_session]
-    saved = @user_session.save
-    flash[:notice] = "Successfully Logged In" if saved
-    # Redirects to path on save otherwise it goes to login
-    respond_with(@user_session, :location => login_path) do |format|
-      # Hack to fork the location on error and success
-      format.html { redirect_to root_path } if saved
-    end
-  end
-
-  def destroy
-    current_user_session.destroy
-    reset_session
-    redirect_to login_path, :notice => "Successfully Logged Out"
-  end
-
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/users_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/users_controller.rb b/blur-admin/app/controllers/users_controller.rb
deleted file mode 100644
index 87cbf11..0000000
--- a/blur-admin/app/controllers/users_controller.rb
+++ /dev/null
@@ -1,57 +0,0 @@
-class UsersController < ApplicationController
-  load_and_authorize_resource
-
-  before_filter :zookeepers, :only => :show
-
-  respond_to :html
-
-  def index
-    @search_filter = AdminSetting.search_filter
-    respond_with(@users)
-  end
-
-  def show
-    @column_preference = @user.column_preference
-    @zookeeper_preference = @user.zookeeper_preference
-    @choices = BlurTable.select('table_schema').collect {|table| schema = table.schema; schema.collect{|familes| familes['name']} if schema}.flatten.uniq
-    respond_with(@user)
-  end
-
-  def new
-    @user = User.new
-  end
-
-  def create
-    if @user.save
-      if can? :index, :users
-        redirect_to users_path, :notice => "User Created"
-      else
-        redirect_to @user, :notice => "User Created"
-      end
-    else
-      render 'new'
-    end
-  end
-
-  def update
-    if @user.update_attributes(params[:user])
-      Audit.log_event(current_user, "User, #{@user.username}, had their roles updated",
-        "users", "update", current_zookeeper)
-      if can? :index, :users
-        redirect_to users_path, :notice => "User Updated"
-      else
-        redirect_to @user, :notice => "User Updated"
-      end
-    else
-      render 'edit'
-    end
-  end
-
-  def destroy
-    @user.destroy
-    Audit.log_event(current_user, "User, #{@user.username}, was removed",
-      "users", "delete", current_zookeeper)
-    flash[:notice] = "User Removed"
-    respond_with(@user)
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/controllers/zookeepers_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/controllers/zookeepers_controller.rb b/blur-admin/app/controllers/zookeepers_controller.rb
deleted file mode 100644
index 167e649..0000000
--- a/blur-admin/app/controllers/zookeepers_controller.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-class ZookeepersController < ApplicationController
-  load_and_authorize_resource :only => [:index, :destroy, :long_running_queries, :show], :shallow => true
-
-  before_filter :set_zookeeper_with_preference, :only => :index
-
-  respond_to :html, :only => [:index, :show]
-  respond_to :json
-
-  def index
-    set_zookeeper Zookeeper.first.id if Zookeeper.count == 1
-    respond_with do |format|
-      format.json { render :json => Zookeeper.dashboard_stats }
-    end
-  end
-
-  def show
-    @zookeepers = Zookeeper.all
-    set_zookeeper params[:id]
-    respond_with(@zookeeper) do |format|
-      format.json { render :json => @zookeeper, :methods => [:clusters, :blur_controllers] }
-    end
-  end
-
-  def destroy
-    raise "Cannot Remove A Zookeeper that is online!" if @zookeeper.zookeeper_status == 1
-    @zookeeper.destroy
-    Audit.log_event(current_user, "Zookeeper (#{@zookeeper.name}) was forgotten", "zookeeper", "delete", @zookeeper) if @zookeeper.destroyed?
-    respond_with(@zookeeper)
-  end
-
-  def long_running_queries
-    respond_with(@zookeeper) do |format|
-      format.json { render :json => @zookeeper.long_running_queries(current_user) }
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/helpers/application_helper.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/helpers/application_helper.rb b/blur-admin/app/helpers/application_helper.rb
deleted file mode 100644
index 1ea6fa6..0000000
--- a/blur-admin/app/helpers/application_helper.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-module ApplicationHelper
-  def pluralize_no_count(count, singular, plural = nil)
-    ((count == 1 || count == '1') ? singular : (plural || singular.pluralize))
-  end
-
-  def stateful_nav_url(page)
-    return '' if session[:current_zookeeper_id].nil?
-    case page
-    when 'environment'
-      return zookeeper_path(session[:current_zookeeper_id])
-    when 'blur_table'
-      return zookeeper_blur_tables_path(session[:current_zookeeper_id])
-    when 'blur_query'
-      return zookeeper_blur_queries_path(session[:current_zookeeper_id])
-    when 'search'
-      return zookeeper_searches_path(session[:current_zookeeper_id])
-    else
-      return ''
-    end
-  end
-end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/helpers/blur_query_helper.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/helpers/blur_query_helper.rb b/blur-admin/app/helpers/blur_query_helper.rb
deleted file mode 100644
index 55d15f7..0000000
--- a/blur-admin/app/helpers/blur_query_helper.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-module BlurQueryHelper
-  def format_title(query_string)
-    query_string.length() > 20 ? query_string.gsub(/ \+/) {'<br />+'} : ''
-  end
-
-  def print_value(conditional, default_message = "Not Available")
-    return default_message unless conditional
-    return conditional unless block_given?
-    yield
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/ability.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/ability.rb b/blur-admin/app/models/ability.rb
deleted file mode 100644
index 596521b..0000000
--- a/blur-admin/app/models/ability.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-class Ability
-  include CanCan::Ability
-
-  def initialize(user)
-    #Anybody
-    can [:error_404, :error_422, :error_500], :errors
-
-    if user # logged in
-      # view, edit, and destroy own account
-      can [:show, :edit, :destroy], :users, :id => user.id
-
-      # edit own username, email, password
-      can :update, :users, [:username, :name, :email, :password, :password_confirmation], :id => user.id
-
-      # logout
-      can :destroy, :user_sessions
-
-      if user.reader?
-        # view pages
-        can :index, [:zookeepers, :blur_tables, :hdfs, :hdfs_metrics]
-        can :show, [:zookeepers, :clusters]
-        can :long_running_queries, :zookeepers
-        can [:expand, :file_info, :info, :folder_info, :slow_folder_info, :file_tree], :hdfs
-        can :stats, :hdfs_metrics
-        can :help, :application
-
-        # can view everything but query_string on blur_tables:
-        attributes = BlurQuery.new.attribute_names.collect{|att| att.to_sym}
-        attributes.delete :query_string
-        can [:index, :show], :blur_queries, attributes
-
-        can :refresh, :blur_queries
-        can [:terms, :hosts, :schema], :blur_tables
-      end
-
-      if user.editor?
-        can [:enable, :disable, :destroy, :comment], :blur_tables
-        can :cancel, :blur_queries
-        can :index, :blur_shards
-        can [:destroy], [:zookeepers, :clusters, :blur_shards, :blur_controllers]
-        can [:move_file, :delete_file, :mkdir, :upload_form, :upload], :hdfs
-      end
-
-      if user.auditor?
-        can [:index, :show], :blur_queries, :query_string
-        can :index, :audits
-      end
-
-      if user.admin?
-        can [:index, :edit, :destroy, :create, :new], :users
-        can :update, :users, [:email, :roles]
-        can :update, :admin_settings
-      end
-
-      if user.searcher?
-        # searches
-        can :access, :searches
-
-        # Can modify own column preferences
-        can :update, :preferences, :user_id => user.id
-      end
-
-    else  # not logged in
-      can :new, [:users, :user_sessions]
-      can :create, :user_sessions
-      can :create, :users, [:username, :name, :email, :password, :password_confirmation]
-    end
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/admin_setting.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/admin_setting.rb b/blur-admin/app/models/admin_setting.rb
deleted file mode 100644
index cee6457..0000000
--- a/blur-admin/app/models/admin_setting.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class AdminSetting < ActiveRecord::Base
-  validates :setting, :uniqueness => true
-
-  def self.search_filter
-    AdminSetting.where(:setting => 'regex_filter').first_or_create(:value => '.*')
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/audit.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/audit.rb b/blur-admin/app/models/audit.rb
deleted file mode 100644
index 2ca536e..0000000
--- a/blur-admin/app/models/audit.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-class Audit < ActiveRecord::Base
-  belongs_to :user
-
-  scope :recent, lambda { |from, to|
-    where(:created_at => from.hours.ago..to.hours.ago).
-    includes(:user)
-  }
-
-	def self.log_event(user, message, model, mutation, parent_affected)
-    Audit.create(
-      :user_id => user.id,
-      :mutation => mutation.downcase,
-      :model_affected => model.downcase,
-      :action => "#{message}",
-      :zookeeper_affected => parent_affected.name
-    )
-	end
-
-  def summary
-    {
-      :action => action,
-      :date_audited => created_at.getutc.to_s,
-      :model => model_affected,
-      :mutation => mutation,
-      :username => user.username,
-      :user => user.name,
-      :zookeeper_affected => zookeeper_affected
-    }
-  end
-end

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b5b86c7e/blur-admin/app/models/blur_controller.rb
----------------------------------------------------------------------
diff --git a/blur-admin/app/models/blur_controller.rb b/blur-admin/app/models/blur_controller.rb
deleted file mode 100644
index 966b82e..0000000
--- a/blur-admin/app/models/blur_controller.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-class BlurController < ActiveRecord::Base
-  belongs_to :zookeeper
-
-  def as_json(options={})
-    serial_properties = super(options)
-    serial_properties.delete('updated_at')
-    serial_properties.delete('created_at')
-    serial_properties
-  end
-end


Mime
View raw message