scinote-web/app/views/canvas/medium_zoom/_my_module.html.erb

29 lines
1.1 KiB
Text
Raw Normal View History

<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 %>"
data-module-conns="<%= construct_module_connections(my_module) %>">
2016-02-12 23:52:43 +08:00
<% if can_manage_my_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) %>">
<%= render partial: "canvas/tags.html.erb", locals: { my_module: my_module } %>
2016-02-12 23:52:43 +08:00
</a>
<% else %>
<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">
<%= 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>