Sha256: a654634539fa669dc78add249bdf8dba1ac04c016b2fd498033594383db4469c

Contents?: true

Size: 978 Bytes

Versions: 3

Compression:

Stored size: 978 Bytes

Contents

- title "<%= plural_name.titleize %>" 
<%- first_attribute = model_attributes.first -%>

.button_bar
  = render :partial => 'search'
  = link_to 'new page', new_app_<%= singular_name %>_path, :class => 'newfile tip', :title => "New <%= singular_name.titleize %>"

= will_paginate @<%= plural_name %>

- @<%= plural_name %>.each do |<%= singular_name %>|
  .item
    .ui-widget.ui-helper-clearfix{:style => 'float:right'}
      = link_to '', edit_app_<%= singular_name %>_path(<%= singular_name %>), :class => 'ui-icon	ui-icon-pencil edit tip', :title => "Edit This Item"
      = link_to '', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"

    %h3= link_to <%= singular_name %>.<%= first_attribute.name %>, <%= singular_name %>
    %p
      = link_to "Preview <%= singular_name.titleize %>", <%= singular_name %>, :class => 'remote_iframe'

= will_paginate @<%= plural_name %> 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-generators-0.3.3 lib/generators/dust/scaffold/templates/views/haml/index.html.haml
dust-generators-0.3.2 lib/generators/dust/scaffold/templates/views/haml/index.html.haml
dust-generators-0.3.1 lib/generators/dust/scaffold/templates/views/haml/index.html.haml