Sha256: d2c80b89aa702bc3f8ff892752cbf7b2cc5e43e3c0b29783c85622a8ab1a5023

Contents?: true

Size: 958 Bytes

Versions: 11

Compression:

Stored size: 958 Bytes

Contents

%h1= params[:model].titlecase
%p= link_to "Add More Data", new_data_set_path(:model => params[:model])

- if !@data_sets.blank?
  %table
    %thead
      %tr
        - attributes_for(@model_constant, :ignore_image_fields => true).each do |attribute|
          %th= attribute.to_s.gsub("_","").titlecase
        %th Actions
      
    %tbody
      - @data_sets.each do |data_set|
        %tr
          - attributes_for(@model_constant, :ignore_image_fields => true).each do |a| 
            %td= pretty_format_type(data_set.send(a))
          %td
            = link_to "View", data_set_path(:model => params[:model], :id => data_set.id)
             | 
            = link_to "Edit", edit_data_set_path(:model => params[:model], :id => data_set.id)
- else
  %p== Currently there are not any #{@model_constant.name.pluralize.titlecase} in the system 
  
- content_for :subnavigation do
  = render :partial => "brick_layer/shared/custom_data_sets_list"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
brick_layer-0.10.6 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.10.5 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.10.3 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.10.2 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.10.1 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.10.0 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.9.6 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.9.4 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.9.2 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.9.1 app/views/brick_layer/data_sets/index.html.haml
brick_layer-0.9.0 app/views/brick_layer/data_sets/index.html.haml