mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
14 lines
640 B
Text
14 lines
640 B
Text
<% if @experiment.my_modules.any?(&:active?) %>
|
|
<% if @experiment.workflowimg.attached? %>
|
|
<canvas class="canvas-preview-img" data-image-url="<%= url_for(@experiment.workflowimg) %>"></canvas>
|
|
<canvas class="canvas-preview-rect"></canvas>
|
|
<% else %>
|
|
<canvas class="canvas-preview-img processing"
|
|
data-workflowimg-present="false"
|
|
data-workflowimg-url="<%= fetch_workflow_img_experiment_url(@experiment) %>"></canvas>
|
|
<canvas class="canvas-preview-rect"></canvas>
|
|
<% end %>
|
|
<% else %>
|
|
<canvas class="canvas-preview-img empty"></canvas>
|
|
<canvas class="canvas-preview-rect"></canvas>
|
|
<% end %>
|