Orbit/app/views/front/show_page_sub_menu.html.erb

13 lines
531 B
Plaintext
Raw Normal View History

<% if @menu_page && @menu_page.visible_children.size > 0 %>
<div class='category_list'>
2013-02-06 08:28:05 +00:00
<!-- <h3 class='h3'><%#= @menu_page.title %></h3> -->
<ul class='list'>
2012-12-21 06:56:12 +00:00
<% @menu_page.visible_children.each do |child| %>
<li class="<%= @page_id.eql?(child.id) ? 'active' : nil %>">
2013-10-04 08:02:14 +00:00
<a href="<%= (child.class.to_s.eql?('Page') ? '/' + child.path : child.url) %>" <%= "target=_blank" if child.class.to_s.eql?('Page').blank? %> ><%= child.title %></a>
</li>
<% end %>
</ul>
</div>
2012-12-21 06:56:12 +00:00
<% end %>