Sha256: 369d782930abb719487280a12b1a5a301e01c7a392e9b4793a457f3f3885f76f

Contents?: true

Size: 795 Bytes

Versions: 5

Compression:

Stored size: 795 Bytes

Contents

- content_for(:title, t(".title", name: @<%= resource_name %>.id))
- add_crumb content_for(:title)

.row
  .span12
    <%- columns.each do |column| -%>
    %dl.dl-horizontal
      %dt= @<%= resource_name %>.class.human_attribute_name(:<%= column.name %>)
      %dd= @<%= resource_name %>.<%= column.name %>
    <%- end -%>

    .form-actions
      = link_to t('.back'), <%= controller_routing_path %>_path, :class => 'btn'
      = link_to t('.edit'), edit_<%= singular_controller_routing_path %>_path(@<%= resource_name %>), :class => 'btn' if can? :update, @<%= resource_name %>
      = link_to t('.destroy'), <%= singular_controller_routing_path %>_path(@<%= resource_name %>), :method => "delete", :confirm => t('.confirm'), :class => 'btn btn-danger' if can? :destroy, @<%= resource_name %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ouvrages_scaffold-0.2.0 lib/generators/ouvrages/views/templates/show.html.haml
ouvrages_scaffold-0.1.3 lib/generators/ouvrages/views/templates/show.html.haml
ouvrages_scaffold-0.1.2 lib/generators/ouvrages/views/templates/show.html.haml
ouvrages_scaffold-0.1.1 lib/generators/ouvrages/views/templates/show.html.haml
ouvrages_scaffold-0.1.0 lib/generators/ouvrages/views/templates/show.html.haml