Sha256: a5439dcfacd034becb0348aa4cfcdaddcfec6e3f4aa5505c6bb9aaec1a4303a7

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

<%- model_class = AttachedFile -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.titleize %></h1>
</div>

<dl class="dl-horizontal">
  <dt><strong><%= model_class.human_attribute_name(:id) %>:</strong></dt>
  <dd><%= @attached_file.id %></dd>
  <dt><strong><%= model_class.human_attribute_name(:issue_comment_id) %>:</strong></dt>
  <dd><%= @attached_file.issue_comment_id %></dd>
  <dt><strong><%= model_class.human_attribute_name(:url) %>:</strong></dt>
  <dd><%= @attached_file.url %></dd>
  <dt><strong><%= model_class.human_attribute_name(:created_at) %>:</strong></dt>
  <dd><%=l @attached_file.created_at %></dd>
  <dt><strong><%= model_class.human_attribute_name(:updated_at) %>:</strong></dt>
  <dd><%=l @attached_file.updated_at %></dd>
</dl>

<%= link_to t('.back', :default => t("helpers.links.back")),
              attached_files_path, :class => 'btn btn-default'  %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
              edit_attached_file_path(@attached_file), :class => 'btn btn-default' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
              attached_file_path(@attached_file),
              :method => 'delete',
              :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
              :class => 'btn btn-danger' %>

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.0/app/views/attached_files/show.html.erb
model_base_generators-0.4.0 examples/rails-5.1/app/views/attached_files/show.html.erb
model_base_generators-0.3.9 example/app/views/attached_files/show.html.erb
model_base_generators-0.3.8 example/app/views/attached_files/show.html.erb
model_base_generators-0.3.7 example/app/views/attached_files/show.html.erb