scinote-web/app/views/shared/sidebar/_my_modules.html.erb
2020-02-28 14:03:08 +01:00

18 lines
934 B
Plaintext

<% if experiment.active_my_modules.present? %>
<ul class="tree-child hidden" data-active="<%= current_experiment&.id == experiment.id %>" data-branch-id="exp<%= experiment.id %>">
<% experiment.active_my_modules.each do |my_module| %>
<li class="leaf <%= 'active' if module_page? && current_task == my_module %>" data-module-id="<%= my_module.id %>">
<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),
class: 'line-wrap',
data: { type: 'my_module', id: my_module.id } %>
<% if experiment_page? && current_experiment == experiment && action_name =='canvas' %>
<a href="" class="canvas-center-on"><i class="fas fa-map-marker-alt"></i></a>
<% end %>
</span>
</li>
<% end %>
</ul>
<% end %>