Sha256: 293669fdb838763620cee249a558bcc70fc12e161cd8dbd939fcdd278e0b959c

Contents?: true

Size: 637 Bytes

Versions: 6

Compression:

Stored size: 637 Bytes

Contents

#kitsune_record_header
  %h2.legend Show #{params[:model_id]}
  %dl
    - @model.columns(:show).each do |column|
      %dt= column.name.capitalize
      %dd= @record.send(column.name)
- @model.columns(:reflections).each do |column|
  .reflection
    %h3= column.name.to_s.titleize
    = link_to 'New', :controller => 'admin/kitsune/records', :action => :new, :model_id => column.name.to_s.classify, (@record.class.to_s.underscore+'_id').to_sym => @record.id
    = render :partial => 'list', :locals => { :model => Kitsune::Inspector.new(column.name.to_s.classify.constantize), :records => @record.send(column.name), :parent => @record }

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ds-kitsune-0.2.5 app/views/admin/kitsune/records/show.html.haml
ds-kitsune-0.2.3 app/views/admin/kitsune/records/show.html.haml
kitsune-0.2.1 app/views/admin/kitsune/records/show.html.haml
kitsune-0.2.0 app/views/admin/kitsune/records/show.html.haml
kitsune-0.1.5 app/views/admin/kitsune/records/show.html.haml
kitsune-0.1.4 app/views/admin/kitsune/records/show.html.haml