Sha256: fd7c779511709f632c2bcc4589abaee677082372f3fd10b8945e5a2ab3555511

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

<div class="card card-default">
  <div class="card-body">
    <h2><%= fa_icon("paperclip") %> <%= Archangel.t(:show_resource, resource: @asset.model_name.human.titleize) %></h2>
  </div>
</div>

<div class="container-fluid">
  <div class="row">
    <div class="col-lg-12">
      <div class="card pages-index">
        <div class="card-header">
          <%= render "buttons" %>
        </div>

        <div class="card-body">
          <p>
            <strong><%= Archangel.t(:file_name) %>:</strong>
            <%= @asset.file_name %>
          </p>

          <p>
            <strong><%= Archangel.t(:file) %>:</strong>
            <%= @asset.file %>

            <% if @asset.file.image? %>
              <div>
                <%= image_tag(@asset.file.small.url, alt: @asset.file_name) %>
              </div>
            <% end %>
          </p>

          <p>
            <strong><%= Archangel.t(:file_size) %>:</strong>
            <%= number_to_human_size(@asset.file_size) %>
          </p>

          <p>
            <strong><%= Archangel.t(:content_type) %>:</strong>
            <%= @asset.content_type %>
          </p>

          <p>
            <pre>
              <code>
{% asset "<%= @asset.file_name %>" %}
              </code>
            </pre>
          </p>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.8 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.7 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.6 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.5 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.4 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.3 app/views/archangel/backend/assets/show.html.erb
archangel-0.0.2 app/views/archangel/backend/assets/show.html.erb