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

Version Path
tawork-0.0.50 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.49 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.48 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.47 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.46 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.45 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.44 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.43 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.42 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.41 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.40 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.39 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.38 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.37 app/views/wiki/spaces/_page_list_item.html.haml
tawork-0.0.36 app/views/wiki/spaces/_page_list_item.html.haml