<%- navigation.each.with_index do |topic_group, groupidx| -%> <%- current_group = topic_group[:id] == group_id -%>
  • <%= topic_group[:name] %>
      <%- topic_group[:topics].each.with_index do |topic, topicidx| -%> <%- if not topic.has_key?(:topics) -%> <%- current_topic = current_group && (topic[:id] == topic_id) -%>
    • <%= topic[:name] %>
    • <%- else -%> <%- current_subgroup = topic[:id] == subgroup_id -%>
    •  <%= topic[:name] %>
        <%- topic[:topics].each.with_index do |subtopic, subtopicidx| -%> <%- if not subtopic.has_key?(:topics) -%> <%- current_subtopic = current_group && current_subgroup && (subtopic[:id] == topic_id) %>
      • <%= subtopic[:name] %>
      • <% else %> <%- current_subsubgroup = subtopic[:id] == subsubgroup_id -%>
      •  <%= subtopic[:name] %>
          <%- subtopic[:topics].each do |subsubtopic| -%> <%- current_subsubtopic = current_group && current_subgroup && current_subsubgroup && (subsubtopic[:id] == topic_id) %>
        • <%= subsubtopic[:name] %>
        • <%- end -%>
      • <%- end -%> <%- end -%>
    • <%- end -%> <%- end -%>
  • <%- end -%>