lib/generators/dust/scaffold/templates/views/front_end/haml/show.html.haml in dust-generators-0.3.1 vs lib/generators/dust/scaffold/templates/views/front_end/haml/show.html.haml in dust-generators-0.3.2
- old
+ new
@@ -1,15 +1,14 @@
<%- first_attribute = model_attributes.first -%>
- title @<%= singular_name %>.title
-= content_tag :div, :class => "page_#{@<%= singular_name %>.id}" do
+= content_tag :div, :class => "<%= singular_name %>_#{@<%= singular_name %>.id}" do
= render_region "<%= singular_name %>" do
- - heading @<%= singular_name %>.<%= first_attribute.name %>
- = @<%= singular_name %>.<%= first_attribute.name %>
+ %h1= @<%= singular_name %>.<%= first_attribute.name %>
- if permitted_to? :manage, :<%= plural_name %>
%p
- = link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>)
+ = link_to "Edit", edit_app_<%= singular_name %>_path(@<%= singular_name %>)
|
= link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
|
= link_to "View All", <%= plural_name %>_path