Sha256: bed1bdf5c515c6d66671eb68e8b017a8ae3b70c583b269d4e274c58264a46dad

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 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
          - unless Adhoq.config.hide_rows_count
            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

3 entries across 3 versions & 1 rubygems

Version Path
adhoq-0.5.0 app/views/adhoq/current_tables/index.html.slim
adhoq-0.5.0.beta1 app/views/adhoq/current_tables/index.html.slim
adhoq-0.4.0 app/views/adhoq/current_tables/index.html.slim