2016-07-28 22:16:14 +08:00
|
|
|
<% timestamp = experiment.created_at %>
|
|
|
|
<% name = experiment.name %>
|
|
|
|
<div class="report-element report-experiment-element"
|
|
|
|
data-ts="<%= timestamp.to_i %>"
|
|
|
|
data-type="experiment"
|
2017-06-05 18:24:06 +08:00
|
|
|
data-id='{ "experiment_id": <%= experiment.id %> }'
|
|
|
|
data-scroll-id="<%= experiment.id %>"
|
2016-07-28 22:16:14 +08:00
|
|
|
data-modal-title="<%=t "projects.reports.elements.modals.experiment_contents.head_title",
|
2018-03-30 23:03:44 +08:00
|
|
|
experiment: experiment.name %>" data-name="<%= name %>" data-icon-class="fas fa-flask">
|
2016-07-28 22:16:14 +08:00
|
|
|
<div class="report-element-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="pull-left user-time">
|
|
|
|
<%=t "projects.reports.elements.experiment.user_time", timestamp: l(timestamp, format: :full) %>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right controls">
|
2016-07-29 16:42:29 +08:00
|
|
|
<%= render partial: "reports/elements/element_controls.html.erb", locals: { show_sort: true } %>
|
2016-07-28 22:16:14 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-07 20:29:40 +08:00
|
|
|
<div class="report-element-body" data-hook="report-experiment-element">
|
2016-07-28 22:16:14 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="pull-left experiment-name">
|
|
|
|
<h4>
|
2018-03-30 23:03:44 +08:00
|
|
|
<i class="fas fa-flask"></i>
|
2016-07-28 22:16:14 +08:00
|
|
|
<%= name %></h4>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<% if experiment.description.present? %>
|
2017-01-24 23:44:56 +08:00
|
|
|
<%= custom_auto_link(experiment.description) %>
|
2016-07-28 22:16:14 +08:00
|
|
|
<% else %>
|
|
|
|
<em><%=t "projects.reports.elements.experiment.no_description" %></em>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children if (defined? children and children.present?) %>
|
|
|
|
</div>
|
|
|
|
</div>
|