2017-02-10 21:27:20 +08:00
|
|
|
<div class="panel panel-default module-medium
|
2017-02-16 18:45:07 +08:00
|
|
|
<%= get_task_alert_color(my_module) %>"
|
2016-02-12 23:52:43 +08:00
|
|
|
id="<%= my_module.id %>"
|
|
|
|
data-module-id="<%= my_module.id %>"
|
|
|
|
data-module-name="<%= my_module.name %>"
|
|
|
|
<% if my_module.my_module_group.present? %>
|
|
|
|
data-module-group="<%= my_module.my_module_group.id %>"
|
|
|
|
<% end %>
|
|
|
|
data-module-x="<%= my_module.x %>"
|
|
|
|
data-module-y="<%= my_module.y %>"
|
2019-01-12 00:20:04 +08:00
|
|
|
data-module-conns="<%= construct_module_connections(my_module) %>">
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2018-02-09 23:14:40 +08:00
|
|
|
<% if can_manage_module?(my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<a class="edit-tags-link pull-right" data-remote="true" href="<%= my_module_tags_edit_url(my_module, format: :json) %>">
|
2018-02-03 03:04:19 +08:00
|
|
|
<%= render partial: "canvas/tags.html.erb", locals: { my_module: my_module } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</a>
|
|
|
|
<% else %>
|
2018-02-03 03:04:19 +08:00
|
|
|
<span class="edit-tags-link pull-right">
|
|
|
|
<%= render partial: "canvas/tags.html.erb", locals: { my_module: my_module } %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">
|
2018-01-29 18:36:36 +08:00
|
|
|
<%= link_to_if can_read_experiment?(my_module.experiment), my_module.name, protocols_my_module_path(my_module) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|