app/views/layouts/_spaces.html.haml in tawork-0.0.4 vs app/views/layouts/_spaces.html.haml in tawork-0.0.5

- old
+ new

@@ -1,22 +1,22 @@ %ul.nav.nav-list.nav-list-panel.space-list %li = link_to wiki_pages_path, class: "space-link" do All Spaces %i.fa.fa-arrow-circle-right - - if @space.present? + - if @space.present? && @space.persisted? %li.nav-header = @space.title - @space.children.each do |page| = render 'wiki/spaces/page_list_item', page: page, end_page: @page -# %li.page-list-item{data: {page_id: page.id}} -# = link_to wiki_page_path(page) do -# - if page.has_children? -# %i.fa.fa-plus-square -# = page.title - %li - = link_to new_wiki_space_path do - %i.fa.fa-plus + %li + = link_to new_wiki_space_path do + %i.fa.fa-plus :coffeescript $ -> $(document).on "click", ".page-list-item a i.fa-plus-square", -> $i = $(this)