2016-08-04 18:57:33 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default experiment-panel"
|
|
|
|
data-id="<%= experiment.id %>">
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
2016-08-09 20:26:08 +08:00
|
|
|
<div class="dropdown pull-right">
|
|
|
|
<button class="btn btn-link dropdown-toggle"
|
2016-08-04 18:57:33 +08:00
|
|
|
type="button"
|
|
|
|
id="exActionsMenu-<%= experiment.id %>"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-expanded="true">
|
|
|
|
<span class="visible-xs-inline"><i class="glyphicon glyphicon-sort"></i></span>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
2016-08-12 16:18:35 +08:00
|
|
|
<%= render partial: 'experiments/dropdown_actions.html.erb',
|
|
|
|
locals: { project: @project, experiment: experiment } %>
|
2016-08-09 20:26:08 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3 class="panel-title"><%= link_to experiment.name, canvas_experiment_path(experiment) %></h3>
|
|
|
|
|
2016-08-04 18:57:33 +08:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2016-08-08 22:02:17 +08:00
|
|
|
<% if experiment.workflowimg? %>
|
2016-08-09 20:26:08 +08:00
|
|
|
<div class="workflowimg-container">
|
2016-08-09 22:37:44 +08:00
|
|
|
<%= link_to image_tag(experiment.workflowimg.expiring_url(30),
|
2016-08-09 20:26:08 +08:00
|
|
|
class: 'img-responsive center-block'),
|
|
|
|
canvas_experiment_path(experiment) %>
|
|
|
|
</div>
|
2016-08-08 22:02:17 +08:00
|
|
|
<% end %>
|
2016-08-04 18:57:33 +08:00
|
|
|
<span>
|
|
|
|
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
|
2016-08-09 20:26:08 +08:00
|
|
|
<%= localize(experiment.created_at, format: t('time.formats.full_date')) %> - <%= localize(experiment.updated_at, format: t('time.formats.full_date')) %>
|
2016-08-04 18:57:33 +08:00
|
|
|
</span>
|
|
|
|
<p><%= experiment.description %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|