unless context[:controller] params = context[:controller].params return unless params[:controller] == 'wiki' pages = load_pages(context[:request].params[:project_id]) pages_by_parent_id = pages.group_by(&:parent_id) content_tag(:div, class: 'page-tree') do concat content_tag(:h2, 'ϖʔδπϦʔϏϡʔ', class: 'page-tree__title') concat render_page_hierarchy(pages_by_parent_id, nil, :timestamp => true) end end