Sha256: ff779d00a86773d942a3fc07fecaf159794709e11d3f025c99798ed7c00043aa

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

<% title "'#{@table.name}' Schema" %>

<h2>Table: <%= @table.name %></h2>

<hr/>

<dl class="sub-nav">
  <dd><%= render '/rails_db/shared/exp_col' %></dd>
  <dd><%= link_to raw("#{fa_icon('table')} Records"), table_data_path(@table), remote: true %></dd>
  <dd class="active"><%= link_to raw("#{fa_icon('tasks')} Schema"), table_path(@table), remote: true %></dd>
  <dd><%= select_top_from_table(@table.name) %></dd>
  <dd><%= link_to raw("#{fa_icon('file-excel-o')} Export"), table_csv_path(@table) %></dd>
</dl>

<table>
  <thead>
    <tr>
      <% @table.column_properties.each do |key| %>
        <th><%= key.titleize.upcase %></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% @table.columns.each do |col| %>
      <tr>
        <% @table.column_properties.each do |key| %>
          <td class="<%= key %>"><%= col.send(key) %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_db-0.5.1 app/views/rails_db/tables/_show.html.erb
rails_db-0.5 app/views/rails_db/tables/_show.html.erb
rails_db-0.4 app/views/rails_db/tables/_show.html.erb