2021-06-10 16:59:34 +08:00
|
|
|
<% experiment ||= report_element.experiment %>
|
2016-07-28 22:16:14 +08:00
|
|
|
<% timestamp = experiment.created_at %>
|
2021-06-08 20:21:34 +08:00
|
|
|
<% export_all = defined?(export_all) && export_all %>
|
2021-06-10 16:59:34 +08:00
|
|
|
<div class="report-element report-experiment-element">
|
2018-06-07 20:29:40 +08:00
|
|
|
<div class="report-element-body" data-hook="report-experiment-element">
|
2022-07-21 15:57:28 +08:00
|
|
|
<h3 class="experiment-name">
|
2022-05-31 20:40:25 +08:00
|
|
|
<%= link_to experiment.name, canvas_experiment_url(experiment), target: :_blank %>
|
|
|
|
<% if experiment.archived? %>
|
|
|
|
<span class="label label-warning"><%= t('search.index.archived') %></span>
|
|
|
|
<% end %>
|
2022-07-21 15:57:28 +08:00
|
|
|
</h3>
|
2022-05-31 20:40:25 +08:00
|
|
|
<div class="user-time">
|
|
|
|
<%= t('projects.reports.elements.experiment.user_time', code: experiment.code, timestamp: l(timestamp, format: :full)) %>
|
2016-07-28 22:16:14 +08:00
|
|
|
</div>
|
2022-05-31 20:40:25 +08:00
|
|
|
<% if experiment.description.present? %>
|
|
|
|
<%= custom_auto_link(experiment.description, team: current_team, base64_encoded_imgs: export_all) %>
|
|
|
|
<% end %>
|
2016-07-28 22:16:14 +08:00
|
|
|
</div>
|
2021-05-20 20:16:39 +08:00
|
|
|
<% if defined?(children) %>
|
|
|
|
<div class="report-element-children">
|
|
|
|
<%= children %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-07-28 22:16:14 +08:00
|
|
|
</div>
|