lib/generators/dust/scaffold/templates/views/front_end/haml/show.html.haml in dust-generators-0.2.8 vs lib/generators/dust/scaffold/templates/views/front_end/haml/show.html.haml in dust-generators-0.3.1

- old
+ new

@@ -1,15 +1,15 @@ <%- first_attribute = model_attributes.first -%> - title @<%= singular_name %>.title -- content_tag :div, :class => "page_#{@<%= singular_name %>.id}" do += content_tag :div, :class => "page_#{@<%= singular_name %>.id}" do + = render_region "<%= singular_name %>" do + - heading @<%= singular_name %>.<%= first_attribute.name %> + = @<%= singular_name %>.<%= first_attribute.name %> - - heading @<%= singular_name %>.<%= first_attribute.name %> - = @<%= singular_name %>.<%= first_attribute.name %> - - - if permitted_to? :manage, :<%= plural_name %> - %p - = link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>) - | - = link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete - | - = link_to "View All", <%= plural_name %>_path + - if permitted_to? :manage, :<%= plural_name %> + %p + = link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>) + | + = link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete + | + = link_to "View All", <%= plural_name %>_path