mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-08 16:06:03 +08:00
Merge pull request #105 from biosistemika/lm-jg-archive-experiment
Add missing commits for showing image and not able to preview
This commit is contained in:
commit
5c13c89156
2 changed files with 12 additions and 1 deletions
|
@ -138,7 +138,12 @@ module PermissionHelper
|
|||
# ---- Some things are disabled for archived experiment ----
|
||||
around [
|
||||
:can_edit_experiment,
|
||||
:can_view_experiment,
|
||||
:can_view_experiment_archive,
|
||||
:can_archive_experiment,
|
||||
:can_view_experiment_samples,
|
||||
:can_clone_experiment,
|
||||
:can_move_experiment,
|
||||
:can_edit_canvas,
|
||||
:can_reposition_modules,
|
||||
:can_edit_connections,
|
||||
|
|
|
@ -19,10 +19,16 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<h3 class="panel-title"><%= link_to experiment.name, canvas_experiment_path(experiment) %></h3>
|
||||
<h3 class="panel-title"><%= experiment.name %></h3>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<% if experiment.workflowimg? %>
|
||||
<div class="workflowimg-container">
|
||||
<%= image_tag(experiment.workflowimg.expiring_url(30),
|
||||
class: 'img-responsive center-block') %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<%=t "projects.experiment_archive.archived_on" %>
|
||||
|
|
Loading…
Reference in a new issue