Sha256: 3000a13c3a3b279648ed64f776d62c408b64b8936d98e083676c0e8d1031f062

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

- title "<%= singular_name.titleize %>"

<%- for attribute in attributes -%>
%p
  %strong <%= attribute.column.human_name.titleize %>:
  =h @<%= singular_name %>.<%= attribute.name %>
<%- end -%>

%p.buttons
  <%- if action? :edit -%>
  = link_to "#{image_tag("icons/edit.gif")} #{t("label.edit")}", edit_<%= singular_name %>_path(@<%= singular_name %>), :class => "button positive"
  <%- end -%>
  <%- if action? :index -%>
  = link_to t("label.back"), <%= plural_name %>_path, :class => "button"
  <%- end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mondo-generators-0.6.9 rails_generators/mondo_scaffold/templates/views/haml/show.html.haml
mondo-generators-0.6.8 rails_generators/mondo_scaffold/templates/views/haml/show.html.haml
mondo-generators-0.6.7 rails_generators/mondo_scaffold/templates/views/haml/show.html.haml