Sha256: ee67cc814e1a6f582008024b95a8dc00d6a5172f7202252f57901af55b80ea98

Contents?: true

Size: 1.29 KB

Versions: 18

Compression:

Stored size: 1.29 KB

Contents

<h2><%%= t('headers.show', name: t('activerecord.models.<%= singular_table_name %>.one')) %></h2>

<table class="table table-striped table-hover">
  <tbody>
<% attributes.each do |attribute| -%>
    <tr>
      <td>
        <%%= t('activerecord.attributes.<%= singular_table_name %>.<%= attribute.name %>') %>
      </td>
      <td>
  <%- if attribute.name.include?("picture") -%>
        <p>
          <%%= link_to "TODO: Anzeigen in Originalgröße", '#' %>
        </p>
        <%%= image_tag(@<%= singular_table_name %>.<%= attribute.name %>_url(:display)) %>
  <%- elsif attribute.type == :boolean -%>
        <%%= @<%= singular_table_name %>.<%= attribute.name %> ? t('simple_form.yes') : t('simple_form.no') %>
  <%- elsif attribute.type == :belongs_to -%>
        <%%= @<%= singular_table_name %>.<%= attribute.name %>.name %>
  <%- else -%>
        <%%= @<%= singular_table_name %>.<%= attribute.name %> %>
  <%- end -%>
      </td>
    </tr>
<% end -%>
  </tbody>
</table>

<%%= link_to t('actions.edit'), [:edit, @<%= singular_table_name %>], class: 'btn btn-primary' %>
<%%= link_to t('actions.back.index'), <%= index_helper %>_path, class: 'btn btn-default' %>
<%%= link_to t('actions.destroy'), @<%= singular_table_name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger' %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bootswatch_rails-3.2.0.10 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.9 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.8 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.7 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.6 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.5 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.4 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.3 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.2 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.2.0.1 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.18 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.17 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.16 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.15 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.14 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.13 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.11 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb
bootswatch_rails-3.1.1.10 lib/generators/bootswatch_rails/install/templates/lib/templates/erb/scaffold/show.html.erb