scinote-web/app/views/shared/sidebar/_my_modules.html.erb

15 lines
509 B
Plaintext
Raw Normal View History

<% if experiment.active_my_modules.present? %>
2016-07-29 21:58:47 +08:00
<ul>
<% experiment.active_my_modules.each do |my_module| %>
<li class="leaf" data-module-id="<%= my_module.id %>">
<span class="tree-link task-tree-link second-indent">
<%= link_to my_module.name,
module_action_to_link_to(my_module),
title: my_module.name,
data: { type: 'my_module', id: my_module.id } %>
</span>
2016-07-29 21:58:47 +08:00
</li>
<% end %>
</ul>
2016-08-03 22:09:45 +08:00
<% end %>