2016-08-08 21:04:38 +08:00
|
|
|
<div class="panel panel-default panel-archive">
|
|
|
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
|
|
|
<div class="dropdown pull-right">
|
|
|
|
<button class="btn btn-link dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<% experiment_form = nil %>
|
|
|
|
<%= form_for experiment, method: :patch, format: :html do |f| %>
|
|
|
|
<% experiment_form = f %>
|
|
|
|
<%= f.hidden_field :archived, value: false %>
|
|
|
|
<% end %>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
|
|
|
|
<li class="dropdown-header"><%=t "projects.index.options_header" %></li>
|
|
|
|
<% if can_restore_experiment(experiment) %>
|
|
|
|
<li><a href="#" class="form-submit-link" data-submit-form="<%= experiment_form.options[:html][:id] %>"><%= t "projects.experiment_archive.restore_option" %></a></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2016-08-26 22:49:32 +08:00
|
|
|
<h3 class="panel-title"><%= experiment.name %></h3>
|
2016-08-08 21:04:38 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2016-08-26 22:49:32 +08:00
|
|
|
<% if experiment.workflowimg? %>
|
|
|
|
<div class="workflowimg-container">
|
2016-10-05 23:45:20 +08:00
|
|
|
<%= image_tag(
|
|
|
|
experiment.workflowimg.expiring_url(
|
2016-10-13 16:00:36 +08:00
|
|
|
Constants::URL_SHORT_EXPIRE_TIME
|
2016-10-05 23:45:20 +08:00
|
|
|
),
|
|
|
|
class: 'img-responsive center-block') %>
|
2016-08-26 22:49:32 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-08-08 21:04:38 +08:00
|
|
|
<div class="row">
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-4">
|
2016-08-08 21:04:38 +08:00
|
|
|
<%=t "projects.experiment_archive.archived_on" %>
|
|
|
|
</div>
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-8">
|
2016-08-08 21:04:38 +08:00
|
|
|
<span title="<%=t "projects.experiment_archive.archived_on_title", date: l(experiment.archived_on, format: :full_date), time: l(experiment.archived_on, format: :time) %>">
|
2016-08-09 17:04:46 +08:00
|
|
|
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
|
2016-08-08 21:04:38 +08:00
|
|
|
<%=l experiment.archived_on, format: :full_date %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-09 17:04:46 +08:00
|
|
|
<div class="row">
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-4">
|
2016-08-09 17:04:46 +08:00
|
|
|
<%=t "projects.experiment_archive.created_on" %>
|
|
|
|
</div>
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-8">
|
2016-08-09 17:04:46 +08:00
|
|
|
<span title="<%=t "projects.experiment_archive.created_on_title", date: l(experiment.created_at, format: :full_date), time: l(experiment.created_at, format: :time) %>">
|
|
|
|
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
|
|
|
|
<%=l experiment.created_at, format: :full_date %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-4">
|
2016-08-09 17:04:46 +08:00
|
|
|
<%=t "projects.experiment_archive.last_modified_on" %>
|
|
|
|
</div>
|
2016-09-06 16:55:05 +08:00
|
|
|
<div class="col-xs-8">
|
2016-08-09 17:04:46 +08:00
|
|
|
<span title="<%=t "projects.experiment_archive.created_on_title", date: l(experiment.updated_at, format: :full_date), time: l(experiment.updated_at, format: :time) %>">
|
|
|
|
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
|
|
|
|
<%=l experiment.updated_at, format: :full_date %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
2017-01-24 23:44:56 +08:00
|
|
|
<%= custom_auto_link(experiment.description) %>
|
2016-08-09 17:04:46 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-08 21:04:38 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|