Sha256: 8214817c772830cbd82a7fdf1c8a5d8a55b7124be31197f69f92891eb91454d4

Contents?: true

Size: 1.16 KB

Versions: 7

Compression:

Stored size: 1.16 KB

Contents

h3
  i.fa.fa-database.fa-pad-r
  | Current tables
  small= "Version #{schema_version}"
  .pull-right
    button.close[data-trigger="toggleCurrentTables" role='close']
      span[aria-hidden=true] ×

ul.list-unstyled.tables
  - @ar_classes.each do |ar_class|
    - first_record = ar_class.unscoped.order(table_order_key(ar_class)).first

    li.ar_class data-table-name=ar_class.table_name
      table.table.table-striped.table-hover.table-bordered
        caption
          span.name= ar_class.table_name
          small.count #{ar_class.unscoped.count} rows
        thead
          tr
            th.col-sm-1.pk PK
            th.col-sm-3.name  Name
            th.col-sm-2.type  Type
            th.col-sm-1.null  Non-Null
            th.col-sm-2.limit Limit
            th.col-sm-3.default  Default
        tbody
          - ar_class.columns.each do |column|
            tr
              td.pk.icon= column.name == ar_class.primary_key ? icon_fa('check-circle') : ''
              td.monospace= column.name
              td= column.type
              td.null.icon= column.null ? '' : icon_fa('check')
              td.limit.number= column.limit
              td= column.default

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adhoq-0.3.0 app/views/adhoq/current_tables/index.html.slim
adhoq-0.2.0 app/views/adhoq/current_tables/index.html.slim
adhoq-0.1.2 app/views/adhoq/current_tables/index.html.slim
adhoq-0.1.1 app/views/adhoq/current_tables/index.html.slim
adhoq-0.1.0 app/views/adhoq/current_tables/index.html.slim
adhoq-0.0.7 app/views/adhoq/current_tables/index.html.slim
adhoq-0.0.6 app/views/adhoq/current_tables/index.html.slim