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

22 lines
722 B
Text
Raw Normal View History

<% if experiment.active_my_modules.present? %>
2016-07-29 21:58:47 +08:00
<ul>
2018-06-01 21:05:12 +08:00
<% experiment.active_my_modules.sort_by{ |m| m.workflow_order }.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 %>
2018-07-19 23:56:42 +08:00
<%= link_to my_module.name, module_action_to_link_to(my_module) %>
<% end %>
<% if is_canvas? %>
<a href="" class="canvas-center-on"><span class="fas fa-map-marker-alt"></span></a>
2016-07-29 21:58:47 +08:00
<% end %>
</span>
2016-07-29 21:58:47 +08:00
</li>
2018-06-01 21:05:12 +08:00
2016-07-29 21:58:47 +08:00
<% end %>
</ul>
2016-08-03 22:09:45 +08:00
<% end %>