Sha256: 2528f305a070f821405bdcc1bd5392ee0cd872dc16f3384e3aa8e5c71212d941

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

<div id="main">

  <%= admin_data_breadcrum do %>
    <%= link_to @klass, admin_data_search_path(:klass => @klass.name) %> 
  <% end %>
  
  <%= render 'admin_data/shared/flash_message', :model => @model %>
  
  <div class="block" id="block-tables">
    <div class="secondary-navigation">
      <%= render 'admin_data/shared/secondary_navigation', :klass => @klass %>
      <div class="clear"></div>
    </div>          
    <div class="content rounded">          
      <h2 class="title"></h2>
      <div class="inner">
        <h1 class='table_name'>Table name : <%=@klass.send(:table_name)%></h1>
        <table class="table colorize">
          <tr>
            <th>Column Name</th>
            <th>Type</th>
            <th>Null</th>
            <th>Default</th>
          </tr>
          <% @klass.columns.each do |column| %>
            <tr>
              <td><%=column.name%></td>
              <td><%=column.type%></td>
              <td><%=column.null%></td>
              <td><%= AdminData::Util.string_representation_of_data(column.default) if column.has_default?%></td>
            </tr>
          <% end %>  
        </table>

        <h2>Index</h2>            
        <% if @indexes.size == 0 %>
          <p>No index was found </p>
        <% else %>  
          <table class="table colorize">
            <tr>
              <th>Info</th>
            </tr>
            <% @indexes.each do |index| %>
              <tr>
                <td><%= index %></td>
              </tr>
            <% end %>  
          </table>
        <% end %>
        
      </div>
    </div>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
admin_data-1.0.22 app/views/admin_data/main/table_structure.html.erb
admin_data-1.0.21 app/views/admin_data/main/table_structure.html.erb
admin_data-1.0.19 app/views/admin_data/main/table_structure.html.erb
admin_data-1.0.18 app/views/admin_data/main/table_structure.html.erb
admin_data-1.0.17 app/views/admin_data/main/table_structure.html.erb