scinote-web/app/views/shared/sidebar/_my_modules.html.erb
2018-06-01 13:49:02 +02:00

20 lines
727 B
Plaintext

<% if experiment.active_my_modules.present? %>
<ul>
<% experiment.active_my_modules.each do |my_module| %>
<li class="leaf <%= "active" if currently_active? my_module %>"
data-module-id="<%= my_module.id %>">
<span class="tree-link second-indent">
<% if currently_active? my_module %>
<%= my_module.name %>
<% else %>
<%= link_to my_module.name, module_action_to_link_to(my_module), data: { no_turbolink: true } %>
<% end %>
<% if is_canvas? %>
<a href="" class="canvas-center-on"><span class="glyphicon glyphicon-map-marker"></span></a>
<% end %>
</span>
</li>
<% end %>
</ul>
<% end %>