Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

503 B
Raw Blame
<%= turbo_frame_tag "wiki_main_menu" do %>
  <div class="menu-wiki-pages-tree tree-menu--container"
       data-controller="menus--subtree"
       data-menus--subtree-selected-value="<%= @page&.slug %>">
    <% cache([@project, @project.wiki]) do %>
      <% pages = @project.wiki.pages.order(Arel.sql("title")).includes(:project)
         pages_by_parent_id = pages.group_by(&:parent_id) %>
      <%= render_page_hierarchy(pages_by_parent_id, nil, timestamp: false) %>
    <% end %>
  </div>
<% end %>