<%- 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 do |subtopic| -%>
<%- current_subtopic = current_group && current_subgroup && (subtopic[:id] == topic_id) %>
- <%= subtopic[:name] %>
-
<%- end -%>
<%- end -%>
<%- end -%>
<%- end -%>