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

18 lines
755 B
Text
Raw Normal View History

<% if experiment.active_my_modules.present? %>
2020-04-01 04:12:38 +08:00
<ul class="tree-child hidden" data-branch-id="exp<%= experiment.id %>">
<% experiment.active_my_modules.each do |my_module| %>
2020-04-01 04:12:38 +08:00
<li class="leaf" data-module-id="<%= my_module.id %>">
2020-01-29 20:22:35 +08:00
<span class="tree-link task-tree-link second-indent" title="<%= my_module.name %>">
<%= link_to my_module.name,
module_action_to_link_to(my_module),
2020-01-29 20:22:35 +08:00
class: 'line-wrap',
data: { type: 'my_module', id: my_module.id } %>
2020-04-01 04:12:38 +08:00
<% if action_name =='canvas' %>
2020-02-28 21:03:08 +08:00
<a href="" class="canvas-center-on"><i class="fas fa-map-marker-alt"></i></a>
<% end %>
</span>
2016-07-29 21:58:47 +08:00
</li>
<% end %>
</ul>
2016-08-03 22:09:45 +08:00
<% end %>