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
|
|
|
|
2023-01-31 22:42:43 +08:00
|
|
|
<a class="edit-tags-link pull-right" data-remote="true" href="<%= my_module_tags_edit_url(my_module, format: :json) %>">
|
2023-06-21 20:13:20 +08:00
|
|
|
<%= render partial: "canvas/tags", locals: { my_module: my_module } %>
|
2023-01-31 22:42:43 +08:00
|
|
|
</a>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">
|
2022-06-09 20:13:29 +08:00
|
|
|
<%= link_to_if can_read_experiment?(experiment), my_module.name, protocols_my_module_path(my_module), title: my_module.name %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|