Sha256: fedb857477434901ce6280a9559eb303be1020b6a9021fd62e0ff57a07a0ff0c

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

<%- first_attribute = model_attributes.first -%>
- title @<%= singular_name %>.title

= content_tag :div, :class => "<%= singular_name %>_#{@<%= singular_name %>.id}" do
  = render_region "<%= singular_name %>" do
    %h1= @<%= singular_name %>.<%= first_attribute.name %>

    - if permitted_to? :manage, :<%= plural_name %>
      %p
        = 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dust-generators-0.3.2 lib/generators/dust/scaffold/templates/views/front_end/haml/show.html.haml