Fix submenu error
This commit is contained in:
		
							parent
							
								
									3c79200c2f
								
							
						
					
					
						commit
						507191426e
					
				| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
<% if @menu_page && @menu_page.visible_children.size > 0 %>
 | 
					<% if @menu_page && @menu_page.visible_children.size > 0 %>
 | 
				
			||||||
  <div class='category_list'>
 | 
					  <div class='category_list'>
 | 
				
			||||||
    <h3 class='h3'><%= @menu_page.title} %></h3>
 | 
					    <h3 class='h3'><%= @menu_page.title %></h3>
 | 
				
			||||||
    <ul class='list'>"
 | 
					    <ul class='list'>"
 | 
				
			||||||
      <% menu_page.visible_children.each do |child| %>
 | 
					      <% @menu_page.visible_children.each do |child| %>
 | 
				
			||||||
        <li class="<%= @page_id.eql?(child.id) ? 'active' : nil %>">
 | 
					        <li class="<%= @page_id.eql?(child.id) ? 'active' : nil %>">
 | 
				
			||||||
          <a href="<%= (child.class.to_s.eql?('Page') ? '/' + child.path : child.url) %>"><%= child.title %></a>
 | 
					          <a href="<%= (child.class.to_s.eql?('Page') ? '/' + child.path : child.url) %>"><%= child.title %></a>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue