Sha256: 1bd2a142160104425c0a0216638ed760d1477f7142581d1d4a50e6ddcd918f7b
Contents?: true
Size: 2 KB
Versions: 12
Compression:
Stored size: 2 KB
Contents
<% tool_navs = ToolNavItem.for_participant(current_participant) %> <% tool_navs.each do |tool_nav| %> <% if tool_nav.generic_tool? %> <li class="<%= tool_nav.title %> dropdown hidden-xs<%= tool_nav.active?(@navigator.current_module) ? " active" : "" %>"> <%= link_to "#", class: "dropdown-toggle", data: { toggle: "dropdown" } do %> <%= tool_nav.title %> <% unless tool_nav.alert.nil? %> <span class="badge badge-do"><%= tool_nav.alert %></span> <% end %> <% end %> <ul class="dropdown-menu" role="menu"> <li> <%= link_to "#{tool_nav.title} Home", think_feel_do_engine.navigator_context_path(context_name: tool_nav.title) %> </li> <% if tool_nav.module_nav_items.first.try(:has_didactic_content?) %> <li class="divider"></li> <% end %> <% last_didactic = false %> <% tool_nav.module_nav_items.each do |module_nav_item| %> <% if last_didactic == false && !module_nav_item.has_didactic_content? %> <% last_didactic = true %> <li class="divider"></li> <% end %> <li> <%= link_to think_feel_do_engine.navigator_location_path(module_id: module_nav_item.id), class: "task-status", id: "task-status-#{ module_nav_item.task_status_id }" do %> <%= module_nav_item.has_didactic_content? ? fa_icon("book") : fa_icon("pencil") %> <%= module_nav_item.title %> <% end %> </li> <% end %> </ul> </li> <% else %> <li class="<%= tool_nav.title %> hidden-xs<%= tool_nav.active?(@navigator.current_module) ? " active" : "" %>"> <%= link_to think_feel_do_engine.navigator_context_path(context_name: tool_nav.title), data: { no_turbolink: true } do %> <%= tool_nav.title %> <% unless tool_nav.alert.nil? %> <span class="badge badge-do"><%= tool_nav.alert %></span> <% end %> <% end %> </li> <% end %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems