Sha256: 69bcb6de89f511ee0a9534905cb046878cb9a7059378b42f9ff85f9c6f297d91

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

<% attributes.reject(&:password_digest?).each do |attribute| -%>
  <dl>
    <dt><%%= <%= class_name %>.human_attribute_name :<%= attribute.name %> %>:</dt>
    <dd><%%= @<%= singular_table_name %>.<%= attribute.name %> %></dd>
  </dl>
<% end -%>

<%%= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'btn btn-link' do %><i class='fa fa-edit fa-lg'></i> <%%= t 'scaffold.action.edit' %><%% end %> |
<%%= link_to <%= index_helper %>_path, class: 'btn btn-link' do %><i class='fa fa-list fa-lg'></i> <%%= t 'scaffold.action.back' %><%% end %>

<%% content_for :title do %>
  <%%= t 'scaffold.action.show' %><%%= <%= class_name %>.model_name.human %>_<%%= t 'scaffold.app.title' %>
<%% end %>

<%% content_for :meta do %>
<%% end %>

<%% content_for :style do %>
  <%%= stylesheet_link_tag '<%= plural_table_name %>/show' %>
  <style type="text/css">
  </style>
<%% end %>

<%% content_for :script do %>
  <%%= javascript_include_tag '<%= plural_table_name %>/show' %>
  <script type="text/javascript">
  </script>
<%% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
repres-bootstrap-2.0 lib/generators/repres/bootstrap/scaffold/templates/show.html.erb
repres-bootstrap-1.11 lib/generators/repres/bootstrap/scaffold/templates/show.html.erb