Sha256: 7f6890c8ff9abff519114e750ebbc97d8c23bae7ab5d31ad4211536dcde3f881

Contents?: true

Size: 1.5 KB

Versions: 40

Compression:

Stored size: 1.5 KB

Contents

<% javascript 'backend/sortable' %>
<%= render 'backend/breadcrumbs' %>
<%= render 'backend/articles/tabs', model: @article, active: :images %>

<p class="text-right">
  <%= link_to icon(:plus, t('b.add')), backend_images_path(klass: @article.class.name, id: @article.id), class: 'btn btn-primary btn-sm' %>
</p>

<% if @images.any? %>
  <table class="table table-striped table-hover">
    <thead class="thead-inverse">
      <tr>
        <th><%= t 'b.file' %></th>
        <th><%= t 'b.type' %></th>
        <th><%= t 'b.size' %></th>
        <th><%= t 'b.description' %></th>
        <th><%= t 'b.last_changed_at' %></th>
        <th>&nbsp;</th>
      </tr>
    </thead>

    <tbody>
      <% @images.each do |img| %>
        <% a = img.asset %>
        <tr data-update-position="<%= update_position_backend_article_image_path(@article, img) %>">
          <td>
            <%= image_tag a.image.url(150, 150), alt: '', class: 'img-fluid' %>
          </td>
          <td><%= a.actual_filename.split('.').last.upcase %></td>
          <td><%= number_to_human_size a.filesize %></td>
          <td><%= simple_format a.description %></td>
          <td><%= l a.updated_at %></td>
          <td class="text-right">
            <%= link_to icon(:trash), unlink_backend_images_path(klass: @article.class.name, id: @article.id, asset_id: a.id), data: { confirm: t('b.msg.confirm') }, title: t('b.delete') %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<% else %>
  <p><%= t 'b.msg.no_items' %></p>
<% end %>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
udongo-7.6.2 app/views/backend/articles/images/index.html.erb
udongo-7.6.1 app/views/backend/articles/images/index.html.erb
udongo-7.6.0 app/views/backend/articles/images/index.html.erb
udongo-7.5.1 app/views/backend/articles/images/index.html.erb
udongo-7.5.0 app/views/backend/articles/images/index.html.erb
udongo-7.4.2 app/views/backend/articles/images/index.html.erb
udongo-7.4.1 app/views/backend/articles/images/index.html.erb
udongo-7.4.0 app/views/backend/articles/images/index.html.erb
udongo-7.3.5 app/views/backend/articles/images/index.html.erb
udongo-7.3.4 app/views/backend/articles/images/index.html.erb
udongo-7.3.3 app/views/backend/articles/images/index.html.erb
udongo-7.3.2 app/views/backend/articles/images/index.html.erb
udongo-7.3.1 app/views/backend/articles/images/index.html.erb
udongo-7.2.1 app/views/backend/articles/images/index.html.erb
udongo-7.2.0 app/views/backend/articles/images/index.html.erb
udongo-7.1.3 app/views/backend/articles/images/index.html.erb
udongo-7.1.2 app/views/backend/articles/images/index.html.erb
udongo-7.1.1 app/views/backend/articles/images/index.html.erb
udongo-7.1.0 app/views/backend/articles/images/index.html.erb
udongo-7.0.4 app/views/backend/articles/images/index.html.erb