mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
38 lines
1.5 KiB
Text
38 lines
1.5 KiB
Text
<div class="col-md-6">
|
|
<div class="panel panel-default experiment-panel"
|
|
data-id="<%= experiment.id %>">
|
|
<div class="panel-heading">
|
|
|
|
<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 } %>
|
|
</div>
|
|
|
|
<h3 class="panel-title"><%= link_to experiment.name, canvas_experiment_path(experiment) %></h3>
|
|
|
|
</div>
|
|
<div class="panel-body">
|
|
<% if experiment.workflowimg? %>
|
|
<div class="workflowimg-container">
|
|
<%= link_to image_tag(experiment.workflowimg.expiring_url(30),
|
|
class: 'img-responsive center-block'),
|
|
canvas_experiment_path(experiment) %>
|
|
</div>
|
|
<% end %>
|
|
<span>
|
|
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
|
|
<%= 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>
|