<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>app/views/layouts/database.html.erb</filename>
    </added>
    <added>
      <filename>app/views/layouts/table.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/README</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/Rakefile</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/init.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/lib/nested_layouts.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/content_for_inner.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/content_for_outer.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/deep.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/inline_inner.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/inner.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/instance_inner.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/instance_outer.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/outer.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/shared_data_inner.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/layouts/shared_data_outer.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/content_for_passing.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/deep_layout.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/inline_layout.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/instance_passing.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/shared_data.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/fixtures/test/simple.rhtml</filename>
    </added>
    <added>
      <filename>vendor/plugins/nested_layouts/test/nested_layouts_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,36 @@
-h1. Welcome to your RailsRumble Repository.
+h1. rbDB
 
-Please note, if you start not by cloning from
-this repository, you will need to append
-&quot;--force&quot; to the end of your first git push.
+/!\ Warning /!\ This is an alpha released of our Railsrumble 48hr-project (&quot;Rails rumble 2008&quot;:http://railsrumble.com). You should NOT use rbDB in production yet. We'll develop missing features in the next days/weeks.
+
+
+h2. Screencast
+
+You can see the demo here : http://www.vimeo.com/2046491
+
+
+h2. Official website
+
+http://www.rbdb.org
+
+
+h2. Description
+
+rbDB is a web-based mysql database administration bringing conventions to database administration
+
+
+h2. Why this project ?
+
+Because we found phpMyAdmin boring, ugly and feature-less
+
+
+h2. So what's the difference ?
+
+* Smart browsing between tables
+* Smart display of foreign keys and fields
+* Smart graphs and relation between tables
+* Quick access to databases and tables
+* Memorize the last tables visited and SQL queries executed
+* In place edit on fields
+* No need of PHP anymore on your production server !
+* Designed RESTfully
+* Classic features you need like custom SQL requests, insert, search...</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,6 @@
 class ApplicationController &lt; ActionController::Base
   helper :all # include all helpers, all the time
 
-  before_filter :authenticate
   # See ActionController::RequestForgeryProtection for details
   # Uncomment the :secret if you're not using the cookie session store
   # protect_from_forgery # :secret =&gt; 'a3d2d7d49f549afb2b0070bf2d5ae125'
@@ -14,20 +13,22 @@ class ApplicationController &lt; ActionController::Base
   # from your application log (in this case, all fields with names like &quot;password&quot;). 
   # filter_parameter_logging :password
 
+  before_filter :authenticate
   before_filter :fill_last_queries
   before_filter :fill_last_tables
-  around_filter :rescue_connexion
   before_filter :fill_system_stats
 
+#  around_filter :rescue_connexion
+
   protected
 
   def authenticate
-    unless session[:authenticated]
-      session[:return_to] = request.request_uri
-      flash[:error] = 'Please give your credentials'
-      redirect_to :controller =&gt; '/accounts', :action =&gt; :login
-      return false
-    end
+    return true if session[:authenticated]
+
+    session[:return_to] = request.request_uri
+    flash[:error] = 'Please give your credentials'
+    redirect_to :controller =&gt; '/accounts', :action =&gt; :login
+    return false
   end
 
   def rescue_connexion 
@@ -84,8 +85,12 @@ class ApplicationController &lt; ActionController::Base
   def store_sql(sql, datab)
     session[:sqls] ||= []
     session[:sqls].shift if session[:sqls].size &gt; MAX_STORED_QUERIES
-    session[:sqls] &lt;&lt; {:body =&gt; sql.body, :id =&gt; sql.id, :num_rows =&gt; sql.num_rows,
-      :db =&gt; datab.name}
+    session[:sqls] &lt;&lt; {
+      :body =&gt; sql.body,
+      :id =&gt; sql.id,
+      :num_rows =&gt; sql.num_rows,
+      :db =&gt; datab.name
+    }
   end
 
   def update_sql(sql)
@@ -98,7 +103,7 @@ class ApplicationController &lt; ActionController::Base
   end
   
   def fill_system_stats
-    @load_average = IO.popen(&quot;uptime&quot;) {|pipe| pipe.read}.split(&quot; &quot;)[-3] rescue 0
+    @load_average = IO.popen(&quot;uptime&quot;) { |pipe| pipe.read }.split(&quot; &quot;)[-3] rescue 0
     questions = 0
     uptime = 0
     ActiveRecord::Base.connection.execute(&quot;SHOW STATUS&quot;).each do |r|</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,33 +38,4 @@ class DatabsController &lt; ApplicationController
     redirect_to databs_path
   end
 
-  # PUT /databs/1
-  # PUT /databs/1.xml
-  def update
-    @datab = Datab.find(params[:id])
-
-    respond_to do |format|
-      if @datab.update_attributes(params[:datab])
-        flash[:notice] = 'Datab was successfully updated.'
-        format.html { redirect_to(@datab) }
-        format.xml  { head :ok }
-      else
-        format.html { render :action =&gt; &quot;edit&quot; }
-        format.xml  { render :xml =&gt; @datab.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /databs/1
-  # DELETE /databs/1.xml
-  def destroy
-    @datab = Datab.find(params[:id])
-    @datab.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(databs_url) }
-      format.xml  { head :ok }
-    end
-  end
-
 end</diff>
      <filename>app/controllers/databs_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,76 +10,4 @@ class EnvironmentsController &lt; ApplicationController
     end
   end
 
-  # GET /environments/1
-  # GET /environments/1.xml
-  def show
-    @environment = Environment.find(params[:id])
-
-    respond_to do |format|
-      format.html # show.html.erb
-      format.xml  { render :xml =&gt; @environment }
-    end
-  end
-
-  # GET /environments/new
-  # GET /environments/new.xml
-  def new
-    @environment = Environment.new
-
-    respond_to do |format|
-      format.html # new.html.erb
-      format.xml  { render :xml =&gt; @environment }
-    end
-  end
-
-  # GET /environments/1/edit
-  def edit
-    @environment = Environment.find(params[:id])
-  end
-
-  # POST /environments
-  # POST /environments.xml
-  def create
-    @environment = Environment.new(params[:environment])
-
-    respond_to do |format|
-      if @environment.save
-        flash[:notice] = 'Environment was successfully created.'
-        format.html { redirect_to(@environment) }
-        format.xml  { render :xml =&gt; @environment, :status =&gt; :created, :location =&gt; @environment }
-      else
-        format.html { render :action =&gt; &quot;new&quot; }
-        format.xml  { render :xml =&gt; @environment.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # PUT /environments/1
-  # PUT /environments/1.xml
-  def update
-    @environment = Environment.find(params[:id])
-
-    respond_to do |format|
-      if @environment.update_attributes(params[:environment])
-        flash[:notice] = 'Environment was successfully updated.'
-        format.html { redirect_to(@environment) }
-        format.xml  { head :ok }
-      else
-        format.html { render :action =&gt; &quot;edit&quot; }
-        format.xml  { render :xml =&gt; @environment.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /environments/1
-  # DELETE /environments/1.xml
-  def destroy
-    @environment = Environment.find(params[:id])
-    @environment.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(environments_url) }
-      format.xml  { head :ok }
-    end
-  end
 end</diff>
      <filename>app/controllers/environments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,65 +27,4 @@ class GraphsController &lt; ApplicationController
     end
   end
 
-  # GET /graphs/new
-  # GET /graphs/new.xml
-  def new
-    @graph = Graph.new
-
-    respond_to do |format|
-      format.html # new.html.erb
-      format.xml  { render :xml =&gt; @graph }
-    end
-  end
-
-  # GET /graphs/1/edit
-  def edit
-    @graph = Graph.find(params[:id])
-  end
-
-  # POST /graphs
-  # POST /graphs.xml
-  def create
-    @graph = Graph.new(params[:graph])
-
-    respond_to do |format|
-      if @graph.save
-        flash[:notice] = 'Graph was successfully created.'
-        format.html { redirect_to(@graph) }
-        format.xml  { render :xml =&gt; @graph, :status =&gt; :created, :location =&gt; @graph }
-      else
-        format.html { render :action =&gt; &quot;new&quot; }
-        format.xml  { render :xml =&gt; @graph.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # PUT /graphs/1
-  # PUT /graphs/1.xml
-  def update
-    @graph = Graph.find(params[:id])
-
-    respond_to do |format|
-      if @graph.update_attributes(params[:graph])
-        flash[:notice] = 'Graph was successfully updated.'
-        format.html { redirect_to(@graph) }
-        format.xml  { head :ok }
-      else
-        format.html { render :action =&gt; &quot;edit&quot; }
-        format.xml  { render :xml =&gt; @graph.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /graphs/1
-  # DELETE /graphs/1.xml
-  def destroy
-    @graph = Graph.find(params[:id])
-    @graph.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(graphs_url) }
-      format.xml  { head :ok }
-    end
-  end
 end</diff>
      <filename>app/controllers/graphs_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,8 @@
 class RelationsController &lt; ApplicationController
   before_filter :select_db
   before_filter :select_table, :only =&gt; [:show, :graph]
-
-  # GET /relations
-  # GET /relations.xml
-  def index
-    @relations = Relation.all
-
-    respond_to do |format|
-      format.html # index.html.erb
-      format.xml  { render :xml =&gt; @relations }
-    end
-  end
+  
+  layout 'table'
 
   # GET /relations/1
   # GET /relations/1.xml
@@ -34,65 +25,4 @@ class RelationsController &lt; ApplicationController
       :disposition =&gt; &quot;inline&quot;)
   end
 
-  # GET /relations/new
-  # GET /relations/new.xml
-  def new
-    @relation = Relation.new
-
-    respond_to do |format|
-      format.html # new.html.erb
-      format.xml  { render :xml =&gt; @relation }
-    end
-  end
-
-  # GET /relations/1/edit
-  def edit
-    @relation = Relation.find(params[:id])
-  end
-
-  # POST /relations
-  # POST /relations.xml
-  def create
-    @relation = Relation.new(params[:relation])
-
-    respond_to do |format|
-      if @relation.save
-        flash[:notice] = 'Relation was successfully created.'
-        format.html { redirect_to(@relation) }
-        format.xml  { render :xml =&gt; @relation, :status =&gt; :created, :location =&gt; @relation }
-      else
-        format.html { render :action =&gt; &quot;new&quot; }
-        format.xml  { render :xml =&gt; @relation.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # PUT /relations/1
-  # PUT /relations/1.xml
-  def update
-    @relation = Relation.find(params[:id])
-
-    respond_to do |format|
-      if @relation.update_attributes(params[:relation])
-        flash[:notice] = 'Relation was successfully updated.'
-        format.html { redirect_to(@relation) }
-        format.xml  { head :ok }
-      else
-        format.html { render :action =&gt; &quot;edit&quot; }
-        format.xml  { render :xml =&gt; @relation.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /relations/1
-  # DELETE /relations/1.xml
-  def destroy
-    @relation = Relation.find(params[:id])
-    @relation.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(relations_url) }
-      format.xml  { head :ok }
-    end
-  end
 end</diff>
      <filename>app/controllers/relations_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,8 @@ class RowsController &lt; ApplicationController
   before_filter :nullify_row_fields, :only =&gt; [:update, :create]
   before_filter :select_row, :only =&gt; [:edit, :update, :destroy]
   
+  layout 'table'
+  
   def index
     if params[:field].nil? or params[:value].nil?
       redirect_to datab_table_path(@datab, @table)</diff>
      <filename>app/controllers/rows_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,17 +3,6 @@ class SearchesController &lt; ApplicationController
   before_filter :select_table
   before_filter :remove_blank_fields, :only =&gt; [:create, :update]
   
-  # GET /searches
-  # GET /searches.xml
-  def index
-    @searches = Search.find(:all)
-
-    respond_to do |format|
-      format.html # index.html.erb
-      format.xml  { render :xml =&gt; @searches }
-    end
-  end
-
   # GET /searches/1
   # GET /searches/1.xml
   def show
@@ -91,18 +80,6 @@ class SearchesController &lt; ApplicationController
       end
     end
   end
-
-  # DELETE /searches/1
-  # DELETE /searches/1.xml
-  def destroy
-    @search = Search.find(params[:id])
-    @search.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(searches_url) }
-      format.xml  { head :ok }
-    end
-  end
   
   private
   def remove_blank_fields</diff>
      <filename>app/controllers/searches_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,8 @@ class SqlsController &lt; ApplicationController
   before_filter :select_db
   before_filter :select_sql
   
+  layout 'database'
+  
   # GET /sqls
   # GET /sqls.xml
   def index
@@ -75,18 +77,6 @@ class SqlsController &lt; ApplicationController
       end
     end
   end
-
-  # DELETE /sqls/1
-  # DELETE /sqls/1.xml
-  def destroy
-    @sql = Sql.find(params[:id])
-    @sql.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(sqls_url) }
-      format.xml  { head :ok }
-    end
-  end
   
   private
   def select_sql</diff>
      <filename>app/controllers/sqls_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,17 +2,8 @@ class TablesController &lt; ApplicationController
   before_filter :select_db
   before_filter :select_table, :only =&gt; [:show]
   
-  # GET /tables
-  # GET /tables.xml
-  def index
-    @tables = Table.all
-
-    respond_to do |format|
-      format.html # index.html.erb
-      format.xml  { render :xml =&gt; @tables }
-    end
-  end
-
+  layout 'table'
+  
   # GET /tables/1
   # GET /tables/1.xml
   def show
@@ -33,8 +24,9 @@ class TablesController &lt; ApplicationController
     session[:structure] = session[:structure] || (!session[:structure] &amp;&amp; !session[:browse])
     @page = (params.has_key? :page) ? params[:page].to_i : 1
     @order = params[:order]
-    if (session[:browse])
-      @rows = @table.ar_class.paginate :page =&gt; params[:page], :per_page =&gt; session[:per_page], :order =&gt; params[:order]
+    if session[:browse]
+      @rows = @table.ar_class.paginate :page =&gt; params[:page], :per_page =&gt; session[:per_page],
+        :order =&gt; params[:order]
     end
     @columns = @table.columns
     store_table(@table)
@@ -46,68 +38,6 @@ class TablesController &lt; ApplicationController
     end
   end
 
-  # GET /tables/new
-  # GET /tables/new.xml
-  def new
-    @table = Table.new
-
-    respond_to do |format|
-      format.html # new.html.erb
-      format.xml  { render :xml =&gt; @table }
-    end
-  end
-
-  # GET /tables/1/edit
-  def edit
-    @table = Table.find(params[:id])
-  end
-
-  # POST /tables
-  # POST /tables.xml
-  def create
-    @table = Table.new(params[:table])
-
-    respond_to do |format|
-      if @table.save
-        flash[:notice] = 'Table was successfully created.'
-        format.html { redirect_to(@table) }
-        format.xml  { render :xml =&gt; @table, :status =&gt; :created, :location =&gt; @table }
-      else
-        format.html { render :action =&gt; &quot;new&quot; }
-        format.xml  { render :xml =&gt; @table.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # PUT /tables/1
-  # PUT /tables/1.xml
-  def update
-    @table = Table.find(params[:id])
-
-    respond_to do |format|
-      if @table.update_attributes(params[:table])
-        flash[:notice] = 'Table was successfully updated.'
-        format.html { redirect_to(@table) }
-        format.xml  { head :ok }
-      else
-        format.html { render :action =&gt; &quot;edit&quot; }
-        format.xml  { render :xml =&gt; @table.errors, :status =&gt; :unprocessable_entity }
-      end
-    end
-  end
-
-  # DELETE /tables/1
-  # DELETE /tables/1.xml
-  def destroy
-    @table = Table.find(params[:id])
-    @table.destroy
-
-    respond_to do |format|
-      format.html { redirect_to(tables_url) }
-      format.xml  { head :ok }
-    end
-  end
-  
   private
   MAX_STORED_TABLES = 3
   def store_table(table)</diff>
      <filename>app/controllers/tables_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ class Datab &lt; Base
   end
 
   def self.databs
-    execute('show databases').each do |name|
+    execute('SHOW DATABASES').each do |name|
       name = name.first
       @@databs[name] = (new name)
     end</diff>
      <filename>app/models/datab.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,16 +8,10 @@ class Graph
   end
 
   def self.generate(table, field)
-    #filename = File.join(Rails.root, 'tmp', table.db.name + '_' + table.name + '_' + field + '.yml')
-    graph = new table, field#YAML.load_file(filename) rescue []
-    # conditions = values.empty? ? nil : [&quot;#{field} &gt; ?&quot;, values.last.first]
+    graph = new table, field
     graph.compute
     graph.arrange_values
     graph.limit_to_ten
-    # graph.limit_to_ten
-    #File.open(filename, 'w') do |out|
-    #  YAML.dump(values, out)
-    #end
     return graph.values
   end
 </diff>
      <filename>app/models/graph.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,45 +2,45 @@
 &lt;% if @datab.tables.empty? %&gt;
 	&lt;div class=&quot;notification&quot;&gt;This database is empty&lt;/div&gt;
 &lt;% else %&gt;
-&lt;h2&gt;&lt;%= @datab.tables.size %&gt; tables&lt;/h2&gt;
-&lt;table class=&quot;database-content sortable&quot;&gt;
-	&lt;thead&gt;
-		&lt;tr&gt;
-		  &lt;th&gt;&lt;/th&gt;
-		  &lt;th&gt;Name&lt;/th&gt;
-		  &lt;th class=&quot;sorttable_numeric&quot;&gt;Records&lt;/th&gt;
-		  &lt;th class=&quot;sorttable_numeric&quot;&gt;Size&lt;/th&gt;
-		  &lt;th&gt;Storage Engine&lt;/th&gt;
-		  &lt;th&gt;Created at&lt;/th&gt;
-		  &lt;th&gt;Collation&lt;/th&gt;
-		&lt;/tr&gt;
-	&lt;/thead&gt;
-	&lt;tbody&gt;
-&lt;% total = total_size = 0 %&gt;
-&lt;% for table in @datab.tables %&gt;
-&lt;tr&gt;
-	&lt;td&gt;&lt;%= table_icon table %&gt;&lt;/td&gt;
-	&lt;td&gt;&lt;%= link_to table.name, datab_table_path(@datab, table) %&gt;&lt;/td&gt;
-	&lt;td class=&quot;int&quot; sorttable_customkey=&quot;&lt;%= table.rows %&gt;&quot;&gt;&lt;%= number_with_delimiter table.rows %&gt;&lt;/td&gt;
-	&lt;td class=&quot;int&quot; sorttable_customkey=&quot;&lt;%= table.data_length.to_i %&gt;&quot;&gt;&lt;%= number_to_human_size table.data_length.to_i %&gt;&lt;/td&gt;
-	&lt;td&gt;&lt;%= table.engine %&gt;&lt;/td&gt;
-	&lt;td sorttable_customkey=&quot;&lt;%= table.create_time %&gt;&quot;&gt;&lt;%= table.create_time.to_s %&gt;&lt;/td&gt;
-	&lt;td&gt;&lt;%= table.collation %&gt;&lt;/td&gt;
-&lt;/tr&gt;
-&lt;% total += table.rows.to_i %&gt;
-&lt;% total_size += table.data_length.to_i %&gt;
+  &lt;h2&gt;&lt;%= @datab.tables.size %&gt; tables&lt;/h2&gt;
+  &lt;table class=&quot;database-content sortable&quot;&gt;
+  	&lt;thead&gt;
+  		&lt;tr&gt;
+  		  &lt;th&gt;&lt;/th&gt;
+  		  &lt;th&gt;Name&lt;/th&gt;
+  		  &lt;th class=&quot;sorttable_numeric&quot;&gt;Records&lt;/th&gt;
+  		  &lt;th class=&quot;sorttable_numeric&quot;&gt;Size&lt;/th&gt;
+  		  &lt;th&gt;Storage Engine&lt;/th&gt;
+  		  &lt;th&gt;Created at&lt;/th&gt;
+  		  &lt;th&gt;Collation&lt;/th&gt;
+  		&lt;/tr&gt;
+  	&lt;/thead&gt;
+  	&lt;tbody&gt;
+  &lt;% total = total_size = 0 %&gt;
+  &lt;% for table in @datab.tables %&gt;
+  &lt;tr&gt;
+  	&lt;td&gt;&lt;%= table_icon table %&gt;&lt;/td&gt;
+  	&lt;td&gt;&lt;%= link_to table.name, datab_table_path(@datab, table) %&gt;&lt;/td&gt;
+  	&lt;td class=&quot;int&quot; sorttable_customkey=&quot;&lt;%= table.rows %&gt;&quot;&gt;&lt;%= number_with_delimiter table.rows %&gt;&lt;/td&gt;
+  	&lt;td class=&quot;int&quot; sorttable_customkey=&quot;&lt;%= table.data_length.to_i %&gt;&quot;&gt;&lt;%= number_to_human_size table.data_length.to_i %&gt;&lt;/td&gt;
+  	&lt;td&gt;&lt;%= table.engine %&gt;&lt;/td&gt;
+  	&lt;td sorttable_customkey=&quot;&lt;%= table.create_time %&gt;&quot;&gt;&lt;%= table.create_time.to_s %&gt;&lt;/td&gt;
+  	&lt;td&gt;&lt;%= table.collation %&gt;&lt;/td&gt;
+  &lt;/tr&gt;
+  &lt;% total += table.rows.to_i %&gt;
+  &lt;% total_size += table.data_length.to_i %&gt;
+  &lt;% end %&gt;
+  &lt;/tbody&gt;
+  &lt;tfoot&gt;
+  	&lt;tr&gt;
+  	  &lt;th colspan=&quot;2&quot;&gt;Total&lt;/th&gt;
+  	  &lt;td&gt;&lt;%= number_with_delimiter total %&gt;&lt;/td&gt;
+  	  &lt;td&gt;&lt;%= number_to_human_size total_size %&gt;&lt;/td&gt;
+  	  &lt;td&gt;&lt;/td&gt;
+  	  &lt;td&gt;&lt;/td&gt;
+  	&lt;/tr&gt;
+  &lt;/tfoot&gt;
+  &lt;/table&gt;
+  &lt;%= link_to 'Back', databs_path %&gt;
+  &lt;%= render :partial =&gt; 'tables/navigator' %&gt;
 &lt;% end %&gt;
-&lt;/tbody&gt;
-&lt;tfoot&gt;
-	&lt;tr&gt;
-	  &lt;th colspan=&quot;2&quot;&gt;Total&lt;/th&gt;
-	  &lt;td&gt;&lt;%= number_with_delimiter total %&gt;&lt;/td&gt;
-	  &lt;td&gt;&lt;%= number_to_human_size total_size %&gt;&lt;/td&gt;
-	  &lt;td&gt;&lt;/td&gt;
-	  &lt;td&gt;&lt;/td&gt;
-	&lt;/tr&gt;
-&lt;/tfoot&gt;
-&lt;/table&gt;
-&lt;%= link_to 'Back', databs_path %&gt;
-&lt;%= render :partial =&gt; 'tables/navigator' %&gt;
-&lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>app/views/databs/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -18,16 +18,16 @@
 			&lt;div class=&quot;title_zone&quot;&gt;
 			&lt;h2&gt;&lt;%= @title || controller.action_name  %&gt;&lt;/h2&gt;
 			&lt;% if (submenu =  yield :submenu) %&gt;
-            &lt;ul class=&quot;submenu&quot;&gt;
-            	&lt;%= submenu %&gt;
-            &lt;/ul&gt;
+        &lt;ul class=&quot;submenu&quot;&gt;
+        	&lt;%= submenu %&gt;
+        &lt;/ul&gt;
 			&lt;% end %&gt;
 			
 			&lt;/div&gt;
 			&lt;div style=&quot;width:1000px; overflow:auto&quot; class=&quot;include&quot;&gt;&lt;%= yield  %&gt;&lt;/div&gt;
 		&lt;/td&gt;
 		&lt;td class=&quot;sidebar&quot;&gt;
-			&lt;%= yield(:sidebar) %&gt;
+			&lt;%= yield :sidebar %&gt;
 		&lt;/td&gt;
     &lt;/tr&gt;
 	&lt;tr&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
 &lt;% @title = @table.name %&gt;
 
-&lt;%= render :partial =&gt; '/tables/submenu' %&gt;
-
 &lt;object type=&quot;image/svg+xml&quot; data=&quot;&lt;%= datab_relations_graph_path(@datab, @table, :format =&gt; 'svg') %&gt;&quot;&gt;&lt;/object&gt;
 
 &lt;%= link_to 'Back', datab_relations_path(@datab) %&gt;</diff>
      <filename>app/views/relations/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
 &lt;% @title = &quot;Edit #{@row.class.to_s.split('::').last} id = #{params[:id]}&quot; %&gt;
 
-&lt;%= render :partial =&gt; &quot;/tables/submenu&quot; %&gt;
-
 &lt;%= render :partial =&gt; &quot;/rows/form&quot;, :locals =&gt; {:button_text =&gt; &quot;Edit&quot;} %&gt;
 
 &lt;%= link_to 'Back', datab_table_path(@datab, @table) %&gt;</diff>
      <filename>app/views/rows/edit.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
 &lt;% @title = @table.name + &quot; #{params[:field]} = &quot; + params[:value] %&gt;
 
-&lt;%= render :partial =&gt; &quot;/tables/submenu&quot; %&gt;
-
 &lt;%= render :partial =&gt; &quot;/tables/browse&quot;, :locals =&gt; {
       :columns =&gt; @table.columns,
       :rows =&gt; @rows</diff>
      <filename>app/views/rows/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,6 @@
 &lt;% @title = &quot;Insert a #{@row.class.to_s.split('::').last}&quot; %&gt;
 
-&lt;%= render :partial =&gt; &quot;/tables/submenu&quot; %&gt;
-
 &lt;%= render :partial =&gt; &quot;/rows/form&quot;, :locals =&gt; {:button_text =&gt; &quot;Create&quot;} %&gt;
 
 &lt;%= link_to 'Back', datab_table_path(@datab, @table) %&gt;
+&lt;%= render :partial =&gt; 'tables/navigator' %&gt;</diff>
      <filename>app/views/rows/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,5 @@
 &lt;% @title = @table.name + &quot; id = &quot; + params[:id] %&gt;
 
-&lt;%= render :partial =&gt; &quot;/tables/submenu&quot; %&gt;
-
 &lt;%= render :partial =&gt; &quot;/tables/browse&quot;, :locals =&gt; {
       :columns =&gt; @table.columns,
       :rows =&gt; @rows</diff>
      <filename>app/views/rows/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,8 @@
 &lt;% content_for :sidebar do %&gt;
-&lt;div id=&quot;table_navigator&quot;&gt;&lt;/div&gt;
-&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
-new TableNavigator(
-[
-&lt;%= render :partial =&gt; @datab.tables %&gt;
-], 'table_navigator')
-&lt;/script&gt;
+  &lt;div id=&quot;table_navigator&quot;&gt;&lt;/div&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
+    new TableNavigator([
+      &lt;%= render :partial =&gt; @datab.tables %&gt;
+    ], 'table_navigator')
+  &lt;/script&gt;
 &lt;% end %&gt;</diff>
      <filename>app/views/tables/_navigator.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,4 @@
 &lt;% @title = @table.name %&gt;
-&lt;%= render :partial =&gt; '/tables/submenu' %&gt;
 
 &lt;% if @rows %&gt;
   &lt;% if @rows.empty? %&gt;
@@ -55,7 +54,6 @@
 				&lt;td&gt;&lt;%= field[:null] %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%= field[:default] %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%= field[:extra] %&gt;&lt;/td&gt;
-				
 			&lt;/tr&gt;
 			&lt;% end %&gt;
 		&lt;/tbody&gt;
@@ -74,16 +72,23 @@
 	&lt;h3&gt;Indexes&lt;/h3&gt;
 	&lt;table&gt;
 		&lt;thead&gt;
-			&lt;tr&gt;&lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Columns&lt;/th&gt;&lt;th&gt;Unique&lt;/th&gt;&lt;th&gt;Cardinality&lt;/th&gt;&lt;/tr&gt;
+			&lt;tr&gt;
+			  &lt;th&gt;Name&lt;/th&gt;
+			  &lt;th&gt;Columns&lt;/th&gt;
+			  &lt;th&gt;Unique&lt;/th&gt;
+			  &lt;th&gt;Cardinality&lt;/th&gt;
+			&lt;/tr&gt;
 		&lt;/thead&gt;
 		&lt;tbody&gt;
 			&lt;% for index in @table.indexes %&gt;
-			&lt;tr&gt;&lt;td&gt;&lt;%= index[:name] %&gt;&lt;/td&gt;&lt;td&gt;&lt;%= index[:columns] %&gt;&lt;/td&gt;&lt;td&gt;&lt;%= index[:unique] %&gt;&lt;/td&gt;&lt;td&gt;&lt;%= index[:cardinality] %&gt;&lt;/td&gt;&lt;/tr&gt;
+			  &lt;tr&gt;
+			    &lt;td&gt;&lt;%= index[:name] %&gt;&lt;/td&gt;
+			    &lt;td&gt;&lt;%= index[:columns] %&gt;&lt;/td&gt;
+			    &lt;td&gt;&lt;%= index[:unique] %&gt;&lt;/td&gt;
+			    &lt;td&gt;&lt;%= index[:cardinality] %&gt;&lt;/td&gt;
+			  &lt;/tr&gt;
 			&lt;% end %&gt;
 		&lt;/tbody&gt;
 	&lt;/table&gt;
 	&lt;% end %&gt;
-
 &lt;% end %&gt;
-
-&lt;%= render :partial =&gt; 'navigator' %&gt;
\ No newline at end of file</diff>
      <filename>app/views/tables/show.html.erb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>README</filename>
    </removed>
    <removed>
      <filename>README.txt</filename>
    </removed>
    <removed>
      <filename>app/views/databs/_table_navigation.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/databs/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/databs/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/environments/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/environments/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/environments/show.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/graphs/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/graphs/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/relations/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/relations/index.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/relations/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/searches/index.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/tables/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/tables/index.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/tables/new.html.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>36961604a0b0fadf7ad987f24c56e338f93f0f42</id>
    </parent>
  </parents>
  <author>
    <name>Sylvain Utard - redox</name>
    <email>sylvain.utard@gmail.com</email>
  </author>
  <url>http://github.com/redox/rbdb/commit/02ed6ac38e5d1b18eeeaece6943b1409cdcbee6e</url>
  <id>02ed6ac38e5d1b18eeeaece6943b1409cdcbee6e</id>
  <committed-date>2008-11-03T13:55:07-08:00</committed-date>
  <authored-date>2008-11-03T13:55:07-08:00</authored-date>
  <message> * Public alpha release (merged from railsrumble '08 repository)</message>
  <tree>64498b97ca30f170958b3f4d12d8e476fa23e748</tree>
  <committer>
    <name>Sylvain Utard - redox</name>
    <email>sylvain.utard@gmail.com</email>
  </committer>
</commit>
