Sha256: 50df116f50ded960ac99778298141a493fea7a3d9c86917a2da5671e16c50437
Contents?: true
Size: 849 Bytes
Versions: 1
Compression:
Stored size: 849 Bytes
Contents
.row .col-sm-3 .panel.panel-primary .panel-heading = model_class.to_s.titleize [#{model_class.primary_key}: #{@row.send(model_class.primary_key)}] .panel-body - model_class.reflections.group_by{|k, relation| relation.macro}.each do |g, groups| %label= g.to_s.titleize %ul.nav.nav-pills.nav-stacked - groups.each do |k, relation| - count = @row.send(k).try(:count) - count_str = count && " (#{count})" %li(class="#{params[:relation] == k && 'active'}")= link_to_mirror_relation("#{k}#{count_str}", model: @row, relation: k) = render 'props', row: @row .col-sm-9 - if @model_children .panel.panel-default .panel-heading = params[:relation].titleize = render 'table', rows: @model_children
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
model_mirror-0.1.0 | app/views/model_mirror/mirror/show.haml |