Sha256: 790f6111c569ed26a8fe7005284526f03b7013ae3aa974b9c7ba2ba98fad847b
Contents?: true
Size: 1.64 KB
Versions: 3
Compression:
Stored size: 1.64 KB
Contents
<%= render 'backend/breadcrumbs' %> <%= render 'filter' %> <p class="text-right"> <%= link_to icon(:plus, t('b.add')), new_backend_asset_path, class: 'btn btn-primary btn-sm' %> </p> <% if @assets.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.used' %></th> <th><%= t 'b.last_changed_at' %></th> <th> </th> </tr> </thead> <tbody> <% @assets.each do |a| %> <tr> <td> <% if a.image? %> <%= link_to image_tag(a.image.url(150, 150), alt: '', class: 'img-fluid'), backend_asset_path(a) %> <% else %> <%= link_to icon(:download, t('b.download')), backend_asset_path(a) %> <% end %> </td> <td><%= a.actual_filename.split('.').last.upcase %></td> <td><%= number_to_human_size a.filesize %></td> <td><%= simple_format a.description %></td> <td> <% if a.deletable? %> <%= t false.to_s %> <% else %> <%= render 'asset_usages', asset: a %> <% end %> </td> <td><%= l a.updated_at, format: :short %></td> <td class="text-right"> <%= link_to_edit [:backend, a] %> <%= link_to_delete [:backend, a] if a.deletable? %> </td> </tr> <% end %> </tbody> </table> <%= udongo_paginate @assets %> <% else %> <p><%= t 'b.msg.no_items' %></p> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
udongo-7.6.2 | app/views/backend/assets/index.html.erb |
udongo-7.6.1 | app/views/backend/assets/index.html.erb |
udongo-7.6.0 | app/views/backend/assets/index.html.erb |