Sha256: 2e7caa1eb7b1b6139cda4891d528b040c4c8865e9d99d3b99997dbdc4141d181

Contents?: true

Size: 826 Bytes

Versions: 3

Compression:

Stored size: 826 Bytes

Contents

// This page needs to be edited accordingly to suit your content

- @window_title = "Content"
- @page_title = "#{link_to("<%= plural_class_name %>", admin_<%= plural_name %>_path)} > #{@<%= singular_name %>.title_or_name?}"

= sub_nav do
  = nav_link("Edit", edit_admin_<%= singular_name %>_path(@<%= singular_name %>))
  - if can? :destroy , <%= class_name %>
    = nav_link("Delete", delete_admin_<%= singular_name %>_path(@<%= singular_name %>))

%div#show_wrapper
  %div.pageBlock
    %dl
    <% attributes.each do |attribute| -%>
  %dt <%= attribute.name.humanize %>
      %dd #{@<%= singular_name %>.<%= attribute.name %>}
    <% end %>

  %dl.meta
    %dt
      Created at
    %dd
      = @<%= singular_name %>.created_at.to_s(:long)
    %dt
      Updated at
    %dd
      = @<%= singular_name %>.updated_at.to_s(:long)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 lib/generators/gluttonberg/resource/templates/backend_view_show.html.haml
gluttonberg-core-3.0.1 lib/generators/gluttonberg/resource/templates/backend_view_show.html.haml
gluttonberg-core-3.0.0 lib/generators/gluttonberg/resource/templates/backend_view_show.html.haml