orbit-basic/app/views/front/show_page_sub_menu.html.erb

24 lines
865 B
Plaintext
Raw Permalink Normal View History

2013-11-22 05:12:31 +00:00
<% if @menu_page.children.present? %>
<div class='category_list'>
2013-02-06 08:28:05 +00:00
<!-- <h3 class='h3'><%#= @menu_page.title %></h3> -->
<ul class='list'>
2013-11-15 06:47:08 +00:00
2012-12-21 06:56:12 +00:00
<% @menu_page.visible_children.each do |child| %>
2013-11-22 05:12:31 +00:00
<li class="<%= @page_id.eql?(child.id) ? 'active' : nil %>">
<a href="<%= (child.class.to_s.eql?('Page') ? '/' + child.path : child.url) %>"><%= child.title %></a>
2013-11-15 06:47:08 +00:00
</li>
2013-11-22 05:12:31 +00:00
<% end %>
</ul>
</div>
<% else %>
<div class='category_list'>
<!-- <h3 class='h3'><%#= @menu_page.title %></h3> -->
<ul class='list'>
2013-11-22 09:14:47 +00:00
<% @menu_page.parent.parent.visible_children.each do |child| %>
<li class="<%= @page_id.eql?(child.id) ? 'active' : nil %>">
<a href="<%= (child.class.to_s.eql?('Page') ? '/' + child.path : child.url) %>"><%= child.title %></a>
</li>
<% end %>
</ul>
</div>
2013-11-15 06:47:08 +00:00
<% end %>