Sha256: e1757b9575bc0b59e5f44d0abfe89fda4835c195a40504ed7cff9590ab79cb64

Contents?: true

Size: 1.51 KB

Versions: 19

Compression:

Stored size: 1.51 KB

Contents

<div id="main">

  <%= 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

19 entries across 19 versions & 1 rubygems

Version Path
admin_data-1.2.1 app/views/admin_data/table_structure/index.html.erb
admin_data-1.2.0 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.16 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.15 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.14 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.13 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.12 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.11 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.10 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.9 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.8 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.7 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.6 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.5 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.4 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.3 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.2 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.1 app/views/admin_data/table_structure/index.html.erb
admin_data-1.1.0 app/views/admin_data/table_structure/index.html.erb