Sha256: bacab682a2c410bdac6feac331aef79cbc1f4b047e2f0df2b9923f53d0baec9f
Contents?: true
Size: 572 Bytes
Versions: 15
Compression:
Stored size: 572 Bytes
Contents
- end_page ||= Struct.new(:id, :ancestor_ids).new("", []) - is_current_page = end_page.id == page.id %li.page-list-item{data: {page_id: page.id}, class: "#{'selected' if is_current_page}"} = link_to wiki_page_path(page) do - if page.has_children? - if end_page.ancestor_ids.include?(page.id) || is_current_page %i.fa.fa-minus-square - else %i.fa.fa-plus-square = page.title - if page.has_children? && (end_page.ancestor_ids.include?(page.id) || is_current_page) = render 'wiki/spaces/space_list', page: page, end_page: end_page
Version data entries
15 entries across 15 versions & 1 rubygems