scinote-web/app/views/projects/show/_experiment.html.erb

39 lines
1.5 KiB
Text
Raw Normal View History

<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"
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>
<%= 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>
</div>
<div class="panel-body">
<% 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>
<% end %>
<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')) %>
</span>
<p><%= experiment.description %></p>
</div>
</div>
</div>