mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
19 lines
542 B
Text
19 lines
542 B
Text
<%
|
|
gallery_view_id = nil unless defined? gallery_view_id
|
|
deletable = asset.step.present?
|
|
editable = true
|
|
|
|
partial_locals = {
|
|
asset: asset,
|
|
gallery_view_id: gallery_view_id,
|
|
deletable: deletable,
|
|
editable: editable
|
|
}
|
|
%>
|
|
<% if asset.inline? %>
|
|
<%= render partial: 'assets/asset_inline.html.erb', locals: partial_locals %>
|
|
<% elsif asset.list? %>
|
|
<%= render partial: 'assets/asset_list.html.erb', locals: partial_locals %>
|
|
<% else %>
|
|
<%= render partial: 'assets/asset_thumbnail.html.erb', locals: partial_locals %>
|
|
<% end %>
|