2020-11-04 20:08:40 +08:00
|
|
|
<%
|
2020-11-05 15:44:48 +08:00
|
|
|
gallery_view_id = nil unless defined? gallery_view_id
|
2020-11-05 17:41:06 +08:00
|
|
|
deletable = asset.step.present?
|
2020-11-05 17:03:15 +08:00
|
|
|
editable = true
|
2020-11-04 20:08:40 +08:00
|
|
|
|
|
|
|
partial_locals = {
|
|
|
|
asset: asset,
|
|
|
|
gallery_view_id: gallery_view_id,
|
|
|
|
deletable: deletable,
|
|
|
|
editable: editable
|
|
|
|
}
|
|
|
|
%>
|
2020-10-16 17:00:57 +08:00
|
|
|
<% if asset.inline? %>
|
2020-11-04 20:08:40 +08:00
|
|
|
<%= render partial: 'assets/asset_inline.html.erb', locals: partial_locals %>
|
2020-10-16 17:00:57 +08:00
|
|
|
<% elsif asset.list? %>
|
2020-11-04 20:08:40 +08:00
|
|
|
<%= render partial: 'assets/asset_list.html.erb', locals: partial_locals %>
|
2020-09-25 21:06:09 +08:00
|
|
|
<% else %>
|
2020-11-04 20:08:40 +08:00
|
|
|
<%= render partial: 'assets/asset_thumbnail.html.erb', locals: partial_locals %>
|
2020-09-25 21:06:09 +08:00
|
|
|
<% end %>
|